Documentation ¶
Index ¶
- type HttpClient
- func (client *HttpClient) DeleteUrl(requestHeaders map[string]string, body []byte) HttpResponse
- func (client *HttpClient) GetUrl(requestHeaders map[string]string, body []byte) HttpResponse
- func (client *HttpClient) PostUrl(requestHeaders map[string]string, body []byte) HttpResponse
- func (client *HttpClient) PostUrlEncodedFormBody(body string) HttpResponse
- func (client *HttpClient) PutUrl(requestHeaders map[string]string, body []byte) HttpResponse
- func (client *HttpClient) RequestWithHeaders(requestType string, body []byte, headers map[string]string) HttpResponse
- type HttpResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpClient ¶
type HttpClient struct {
// contains filtered or unexported fields
}
func CreateHttpClient ¶
func CreateHttpClient(url string) *HttpClient
func (*HttpClient) DeleteUrl ¶ added in v1.0.63
func (client *HttpClient) DeleteUrl(requestHeaders map[string]string, body []byte) HttpResponse
func (*HttpClient) GetUrl ¶ added in v1.0.63
func (client *HttpClient) GetUrl(requestHeaders map[string]string, body []byte) HttpResponse
func (*HttpClient) PostUrl ¶ added in v1.0.63
func (client *HttpClient) PostUrl(requestHeaders map[string]string, body []byte) HttpResponse
func (*HttpClient) PostUrlEncodedFormBody ¶
func (client *HttpClient) PostUrlEncodedFormBody(body string) HttpResponse
func (*HttpClient) PutUrl ¶ added in v1.0.63
func (client *HttpClient) PutUrl(requestHeaders map[string]string, body []byte) HttpResponse
func (*HttpClient) RequestWithHeaders ¶ added in v1.0.63
func (client *HttpClient) RequestWithHeaders(requestType string, body []byte, headers map[string]string) HttpResponse
type HttpResponse ¶
Click to show internal directories.
Click to hide internal directories.