nethttp

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNetHTTP2Client added in v0.4.2

func GetNetHTTP2Client(config *http_clients.Config) (http_clients.GoPayLoaderClient, error)

func GetNetHTTP3Client

func GetNetHTTP3Client(config *http_clients.Config) (http_clients.GoPayLoaderClient, error)

func GetNetHTTPClient

func GetNetHTTPClient(config *http_clients.Config) (http_clients.GoPayLoaderClient, error)

Types

type Client

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

func (*Client) CloseConns added in v0.4.1

func (c *Client) CloseConns()

func (*Client) Do

func (c *Client) Do(req http_clients.Request, resp http_clients.Response) error

func (*Client) HTTP2 added in v0.4.2

func (c *Client) HTTP2() bool

func (*Client) NewReq

func (c *Client) NewReq(method, url string) (http_clients.Request, error)

func (*Client) NewResponse

func (c *Client) NewResponse() http_clients.Response

type Req

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

func (*Req) SetBody

func (r *Req) SetBody(body []byte)

func (*Req) SetHeader

func (r *Req) SetHeader(key, val string)

func (*Req) SetMethod

func (r *Req) SetMethod(method string)

func (*Req) Size

func (r *Req) Size() int64

type Resp

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

func (*Resp) Close added in v0.4.1

func (r *Resp) Close()

func (*Resp) Size

func (r *Resp) Size() int64

func (*Resp) StatusCode

func (r *Resp) StatusCode() int

Jump to

Keyboard shortcuts

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