Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPClient ¶
type HTTPClient struct { Request *HTTPRequestClient Response *HTTPResponseClient Body []byte HeadersRequest map[string]string HeadersResponse map[string]string }
HTTPClient is object which contains *http data.
func Call ¶
func Call(method types.Method, url types.URL, contentType string, data []byte, headers map[string]string, logger func(message string, mode string)) (*HTTPClient, error)
Call http method
func NewHTTPClient ¶
func NewHTTPClient(response *http.Response, data []byte) *HTTPClient
NewHTTPClient returns an instance of HTTPClient object which contains *httpResponse and body.
type HTTPRequestClient ¶
HTTPRequestClient struct
Click to show internal directories.
Click to hide internal directories.