Documentation
¶
Index ¶
- func NewCookies() *cookiejar.Jar
- func NewHeaders() *http.Header
- func ParseCookies(rawurl string, cookies interface{}) *cookiejar.Jar
- func ParseHeaders(headers interface{}) *http.Header
- func SearchStrings(str []string, substr string) int
- type Files
- func (fs *Files) AddField(name, value string)
- func (fs *Files) AddFile(name, fileName, filePath, contentType string)
- func (fs *Files) Del(name string) bool
- func (fs *Files) Encode() (*bytes.Buffer, string, error)
- func (fs *Files) Get(name string) map[string]string
- func (fs *Files) SetField(name, value string)
- func (fs *Files) SetFile(name, fileName, filePath, contentType string)
- type Params
- type Request
- type URL
- type Values
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCookies ¶
func ParseCookies ¶
Types ¶
type Files ¶
type Files struct {
// contains filtered or unexported fields
}
Files结构体
type Request ¶
type Request struct {
Params *Params
Headers *http.Header
Cookies *cookiejar.Jar
Data *Values
Files *Files
Json map[string]interface{}
Body io.Reader
Auth []string
Timeout time.Duration
AllowRedirects bool
Proxies string
Verify bool
Cert []string
Stream bool
Ja3 string
RandomJA3 bool
ForceHTTP1 bool
TLSExtensions *http.TLSExtensions
HTTP2Settings *http.HTTP2Settings
}
func NewRequest ¶
func NewRequest() *Request
type URL ¶
type URL struct {
Scheme string // 协议
User *url.Userinfo // 用户信息
Host string // 地址
Path string // 路径
RawParams string // GET参数
Params *Params // GET参数
RawFragment string // 原始锚点
Fragment string // 锚点
// contains filtered or unexported fields
}
URL结构体
Click to show internal directories.
Click to hide internal directories.