Documentation ¶
Index ¶
- func NewCookies() *cookiejar.Jar
- func NewHeaders() *http.Header
- func ParseCookies(rawurl, cookies string) *cookiejar.Jar
- func ParseHeaders(headers string) *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{} Auth []string Timeout time.Duration AllowRedirects bool Proxies string Verify bool Cert []string Ja3 string }
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 // 锚点 }
URL结构体
Source Files ¶
Click to show internal directories.
Click to hide internal directories.