http

package
v1.0.87 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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

type HttpResponse struct {
	StatusCode int
	Bytes      []byte
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL