request

package
v0.37.7 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request added in v0.37.0

type Request struct {
	// contains filtered or unexported fields
}

func New added in v0.37.0

func New() *Request

func (*Request) Addr added in v0.37.0

func (r *Request) Addr(addr string) *Request

func (*Request) Body added in v0.37.0

func (r *Request) Body(content []byte) *Request

func (*Request) Do added in v0.37.0

func (r *Request) Do() (*Response, error)

func (*Request) HTTP added in v0.37.1

func (r *Request) HTTP() *Request

func (*Request) HTTPHeaders added in v0.37.1

func (r *Request) HTTPHeaders(headers map[string]string) *Request

func (*Request) HTTPHost added in v0.37.1

func (r *Request) HTTPHost(host string) *Request

func (*Request) HTTPParams added in v0.37.1

func (r *Request) HTTPParams(method, host, path string, headers map[string]string) *Request

func (*Request) HTTPPath added in v0.37.1

func (r *Request) HTTPPath(path string) *Request

func (*Request) HTTPS added in v0.37.1

func (r *Request) HTTPS() *Request

func (*Request) Port added in v0.37.0

func (r *Request) Port(port int) *Request

func (*Request) Protocol added in v0.37.0

func (r *Request) Protocol(protocol string) *Request

func (*Request) Proxy added in v0.37.0

func (r *Request) Proxy(url string) *Request

func (*Request) TCP added in v0.37.0

func (r *Request) TCP() *Request

func (*Request) TLSConfig added in v0.37.1

func (r *Request) TLSConfig(tlsConfig *tls.Config) *Request

func (*Request) Timeout added in v0.37.0

func (r *Request) Timeout(timeout time.Duration) *Request

func (*Request) UDP added in v0.37.0

func (r *Request) UDP() *Request

type Response added in v0.37.1

type Response struct {
	Code    int
	Header  http.Header
	Content []byte
}

Jump to

Keyboard shortcuts

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