Documentation
¶
Index ¶
Constants ¶
View Source
const ( Auto = iota FAST STANDARD )
Variables ¶
View Source
var (
DefaultMaxBodySize int64 = 1024 * 100 // 100k
)
Functions ¶
func CheckBodySize ¶
Types ¶
type Client ¶
type Client struct {
*ClientConfig
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(config *ClientConfig) *Client
func (*Client) TransToCheck ¶
func (c *Client) TransToCheck()
type ClientConfig ¶
type RequestConfig ¶ added in v1.2.3
type RequestConfig struct {
Method string
Headers http.Header
CustomHost string
Body []byte
RawQuery string
RandomUserAgent bool
}
RequestConfig 封装HTTP请求相关的配置参数
type Response ¶
type Response struct {
StandardResponse *http.Response
FastResponse *fasthttp.Response
ClientType int
}
func (*Response) ContentLength ¶
func (*Response) ContentType ¶
func (*Response) StatusCode ¶
Click to show internal directories.
Click to hide internal directories.