Documentation ¶
Overview ¶
Package http [allows sending customized http traffic]
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitRequest ¶
func InitRequest(c RequestConfig, req *fasthttp.Request)
InitRequest is used to populate data from request config to fasthttp.Request
Types ¶
type ClientConfig ¶
type ClientConfig struct { StaticHost *StaticHostConfig TLSClientConfig *tls.Config Timeout *time.Duration ReadTimeout *time.Duration WriteTimeout *time.Duration IdleTimeout *time.Duration MaxIdleConns *int Proxy *utils.ProxyParams }
ClientConfig is a http client configuration structure
type RequestConfig ¶
type RequestConfig struct { Path string Method string Body string Headers map[string]string Cookies map[string]string }
RequestConfig is a struct representing the config of a single request
type StaticHostClient ¶ added in v0.8.23
type StaticHostClient struct {
// contains filtered or unexported fields
}
Not a very effective way but hey, it does it's job
type StaticHostConfig ¶ added in v0.8.2
Click to show internal directories.
Click to hide internal directories.