Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPRequest ¶
type HTTPRequest interface { WithJson(requestModel interface{}) HTTPRequest WithXml(requestModel interface{}) HTTPRequest WithFromURLEncoded(formData map[string]interface{}) HTTPRequest WithContext(context context.Context) HTTPRequest WithBasicAuth(username string, password string) HTTPRequest WithJWTAuth(token string) HTTPRequest WithQueryParameters(queryParam map[string]string) HTTPRequest WithOauth(token string) HTTPRequest AddHeaders(key string, value string) HTTPRequest AddCookies(cookies *http.Cookie) HTTPRequest GetResponseAs(responseModel interface{}) HTTPRequest GetResponseStatusCodeAs(httpStatusCode *int) HTTPRequest GetResponseCookiesAs(cookies *[]*http.Cookie) HTTPRequest GetResponseHeadersAs(respHeaders *map[string][]string) HTTPRequest GET(url string) error POST(url string) error PUT(url string) error PATCH(url string) error DELETE(url string) error Error() error }
type RestClient ¶
type RestClient interface {
NewRequest() HTTPRequest
}
func NewRestClient ¶
func NewRestClient(httpClient client.HttpClient) RestClient
Click to show internal directories.
Click to hide internal directories.