fasthttp

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFastHTTPClient1

func GetFastHTTPClient1(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 (fh *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 (fh *Client) NewReq(method, url string) (http_clients.Request, error)

func (*Client) NewResponse

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

type Req

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

func (*Req) SetBody

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

func (*Req) SetHeader

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

func (*Req) SetMethod

func (fh *Req) SetMethod(method string)

func (*Req) Size

func (fh *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