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 ¶
func (client *HttpClient) DeleteUrl(requestHeaders map[string]string, body []byte) HttpResponse
func (*HttpClient) GetUrl ¶
func (client *HttpClient) GetUrl(requestHeaders map[string]string, body []byte) HttpResponse
func (*HttpClient) PostUrl ¶
func (client *HttpClient) PostUrl(requestHeaders map[string]string, body []byte) HttpResponse
func (*HttpClient) PostUrlEncodedFormBody ¶
func (client *HttpClient) PostUrlEncodedFormBody(body string) HttpResponse
func (*HttpClient) PutUrl ¶
func (client *HttpClient) PutUrl(requestHeaders map[string]string, body []byte) HttpResponse
func (*HttpClient) RequestWithHeaders ¶
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.