http

package
v2.1.38 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 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

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

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