Documentation ¶
Index ¶
- func DownLoadFile(url, method, filename string, params map[string]interface{}, ...) (string, error)
- func DownLoadFileByProxy(proxyUrl, requestUrl, method, filename string, params map[string]interface{}, ...) (string, error)
- func GenerateFingerprint(r *http.Request) string
- func GenerateFingerprintKey(r *http.Request, key string) string
- func GetBrowserName(userAgent string) string
- func GetOsName(userAgent string) string
- func Request(url, method string, params map[string]interface{}, headers map[string]string, ...) (map[string]interface{}, error)
- func RequestByProxy(proxyUrl, requestUrl, method string, params map[string]interface{}, ...) (map[string]interface{}, error)
- func RequestByte(url, method string, params map[string]interface{}, headers map[string]string, ...) ([]byte, error)
- func RequestByteByProxy(proxyUrl, requestUrl, method string, params map[string]interface{}, ...) ([]byte, error)
- func RequestString(url, method string, params map[string]interface{}, headers map[string]string, ...) (string, error)
- func RequestStringByProxy(proxyUrl, requestUrl, method string, params map[string]interface{}, ...) (string, error)
- func UpLoadFileBinary(url, method, filePath string, headers map[string]string) (map[string]interface{}, error)
- func UpLoadFileBinaryByProxy(proxyUrl, requestUrl, method, filePath string, headers map[string]string) (map[string]interface{}, error)
- func UpLoadFileForm(url, method, filePath string, params map[string]interface{}, ...) (map[string]interface{}, error)
- func UpLoadFileFormByProxy(proxyUrl, requestUrl, method, filePath string, params map[string]interface{}, ...) (map[string]interface{}, error)
- func UpLoadFileWriter(url, method, filePath string, headers map[string]string) (map[string]interface{}, error)
- func UpLoadFileWriterByProxy(proxyUrl, requestUrl, method, filePath string, headers map[string]string) (map[string]interface{}, error)
- func UpLoadFilesForm(url, method string, filePaths []string, params map[string]interface{}, ...) (map[string]interface{}, error)
- func UpLoadFilesFormByProxy(proxyUrl, requestUrl, method string, filePaths []string, ...) (map[string]interface{}, error)
- func UpLoadFilesWriter(url, method string, filePaths []string, headers map[string]string) (map[string]interface{}, error)
- func UpLoadFilesWriterByProxy(proxyUrl, requestUrl, method string, filePaths []string, ...) (map[string]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownLoadFile ¶
func DownLoadFileByProxy ¶ added in v0.1.7
func GenerateFingerprint ¶ added in v0.1.7
GenerateFingerprint 从请求头中提取信息生成指纹
func GenerateFingerprintKey ¶ added in v0.1.8
GenerateFingerprintKey 从请求头中提取信息生成指纹,并加入唯一标识
func GetBrowserName ¶ added in v0.1.7
GetBrowserName 获取浏览器名称
func RequestByProxy ¶ added in v0.1.7
func RequestByte ¶ added in v0.1.7
func RequestByteByProxy ¶ added in v0.1.7
func RequestString ¶ added in v0.1.7
func RequestStringByProxy ¶ added in v0.1.7
func UpLoadFileBinary ¶
func UpLoadFileBinaryByProxy ¶ added in v0.1.7
func UpLoadFileForm ¶
func UpLoadFileFormByProxy ¶ added in v0.1.7
func UpLoadFileWriter ¶
func UpLoadFileWriterByProxy ¶ added in v0.1.7
func UpLoadFilesForm ¶
func UpLoadFilesFormByProxy ¶ added in v0.1.7
func UpLoadFilesWriter ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.