fasthttp

package
v3.0.16 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTransport

func RegisterTransport()

Types

type Transport

type Transport struct {
	DisableHTTPHeader bool
	Header            http.Header
	FastHTTPClient    fasthttp.Client
	// contains filtered or unexported fields
}

func (*Transport) Abort

func (trans *Transport) Abort()

func (*Transport) Compression

func (trans *Transport) Compression() bool

Compression returns the compression status

func (*Transport) CookieManagerOption

func (trans *Transport) CookieManagerOption() cookie.CookieManagerOption

CookieManagerOption returns the CookieManagerOption

func (*Transport) KeepAlive

func (trans *Transport) KeepAlive() bool

KeepAlive returns the keepalive status

func (*Transport) SetCompression

func (trans *Transport) SetCompression(enable bool)

SetCompression sets the compression status

func (*Transport) SetCookieManagerOption

func (trans *Transport) SetCookieManagerOption(option cookie.CookieManagerOption)

SetCookieManagerOption sets the CookieManagerOption

func (*Transport) SetKeepAlive

func (trans *Transport) SetKeepAlive(enable bool)

SetKeepAlive sets the keepalive status

func (*Transport) SetTLSClientConfig

func (trans *Transport) SetTLSClientConfig(config *tls.Config)

SetTLSClientConfig sets the tls.Config

func (*Transport) TLSClientConfig

func (trans *Transport) TLSClientConfig() *tls.Config

TLSClientConfig returns the tls.Config

func (*Transport) Transport

func (trans *Transport) Transport(ctx context.Context, request []byte) (response []byte, err error)

Jump to

Keyboard shortcuts

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