Documentation
¶
Index ¶
- type HttpClient
- func (client HttpClient) EnableCookieJar() HttpClient
- func (client HttpClient) Execute(r *http.Request) (*http.Response, []byte, error)
- func (client HttpClient) Get(url string, requestHeader map[string]string) (*http.Response, []byte, error)
- func (client HttpClient) GetJson(url string, requestHeader map[string]string, v any) error
- func (client HttpClient) Post(url string, reqBody io.Reader, requestHeader map[string]string) (*http.Response, []byte, error)
- func (client HttpClient) PostForm(url string, formData, fileData, requestHeader map[string]string) (*http.Response, []byte, error)
- func (client HttpClient) PostFormJson(url string, formData, fileData, requestHeader map[string]string, v any) error
- func (client HttpClient) PostJson(url string, reqBody io.Reader, requestHeader map[string]string, v any) error
- func (client HttpClient) SetProxyUrl(rawURL string) HttpClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpClient ¶
func (HttpClient) EnableCookieJar ¶
func (client HttpClient) EnableCookieJar() HttpClient
EnableCookieJar 开启HttpClient Cookie管理
func (HttpClient) PostFormJson ¶
func (HttpClient) SetProxyUrl ¶
func (client HttpClient) SetProxyUrl(rawURL string) HttpClient
Click to show internal directories.
Click to hide internal directories.