req

package
v0.0.0-...-4299fc8 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	Build()
}

type FastData

type FastData struct {
	Client  *fasthttp.Client
	Headers map[string]string
	URL     string
	Method  string
	Payload string
	Timeout int
	Proxy   *proxy.Proxy
}

func (*FastData) Build

func (data *FastData) Build() *FastHttp

Build data for FastHttp

type FastHttp

type FastHttp struct {
	Client         *fasthttp.Client
	Request        *fasthttp.Request
	Response       *fasthttp.Response
	Timeout        time.Duration
	ExpectedStatus int
	MaxRetries     int
	Proxy          *proxy.Proxy
}

func (*FastHttp) DoRequest

func (fh *FastHttp) DoRequest() (err error)

Send request via FastHttp

type NetData

type NetData struct {
	Client  *http.Client
	Headers map[string]string
	URL     string
	Method  string
	Payload string
	Timeout int
	Proxy   *proxy.Proxy
}

type NetHttp

type NetHttp struct {
	Client         *http.Client
	Request        *http.Request
	Response       *http.Response
	Timeout        time.Duration
	ExpectedStatus int
	MaxRetries     int
	Proxy          *proxy.Proxy
}

type Requester

type Requester interface {
	DoRequest()
}

Jump to

Keyboard shortcuts

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