Versions in this module Expand all Collapse all v1 v1.0.0 Nov 20, 2020 Changes in this version + type HTTPRequest interface + AddCookies func(cookies *http.Cookie) HTTPRequest + AddHeaders func(key string, value string) HTTPRequest + DELETE func(url string) error + Error func() error + GET func(url string) error + GetResponseAs func(responseModel interface{}) HTTPRequest + GetResponseCookiesAs func(cookies *[]*http.Cookie) HTTPRequest + GetResponseHeadersAs func(respHeaders *map[string][]string) HTTPRequest + GetResponseStatusCodeAs func(httpStatusCode *int) HTTPRequest + PATCH func(url string) error + POST func(url string) error + PUT func(url string) error + WithBasicAuth func(username string, password string) HTTPRequest + WithContext func(context context.Context) HTTPRequest + WithFromURLEncoded func(formData map[string]interface{}) HTTPRequest + WithJWTAuth func(token string) HTTPRequest + WithJson func(requestModel interface{}) HTTPRequest + WithOauth func(token string) HTTPRequest + WithQueryParameters func(queryParam map[string]string) HTTPRequest + WithXml func(requestModel interface{}) HTTPRequest + type RestClient interface + NewRequest func() HTTPRequest + func NewRestClient(httpClient client.HttpClient) RestClient