package
0.0.0-20231206062002-1ce2f004b7d9
Repository: https://github.com/codingeasygo/util.git
Documentation: pkg.go.dev
# Functions
ClearCookie will clear cookie.
CreateFileBodyTask will create the file upload task.
CreateMultipartBody will create multipart body.
DisableCookie will disable cookie.
DisableInsecureVerify will disable verify insecure.
Download will download file to save path.
DownloadHeader will download file to save path.
EnableCookie will enable cookie.
EnableInsecureVerify will enable verify insecure.
GetBytes will get bytes from remote.
GetHeaderBytes will get bytes from remote.
GetHeaderMap will get map from remote.
GetHeaderMap will get map from remote.
GetHeaderText will get text from remote.
GetJSON will get json from remote.
GetMap will get map from remote.
GetText will get text from remote.
MethodBytes will do http request, read reponse and parse to bytes.
MethodBytes will do http request, read reponse and parse to map.
MethodBytes will do http request, read reponse and parse to string.
NewClient will return new client by http.Client.
NewRawClient will return new client.
No description provided by the author
PostBytes will get bytes from remote.
PostFormMap will get map from remote.
PostFormText will get text from remote.
PostHeaderBytes will get bytes from remote.
PostHeaderMap will get map from remote.
PostHeaderMap will get map from remote.
PostHeaderText will get text from remote.
PostMap will get map from remote.
PostJSONMap will get map from remote.
PostJSONMap will get map from remote.
PostMap will get map from remote.
PostMultipartBytes will get bytes from remote.
PostMultipartMap will get map from remote.
PostMultipartText will get bytes from remote.
PostText will get text from remote.
PostTypeBytes will get bytes from remote.
PostTypeMap will get map from remote.
PostTypeMap will get map from remote.
PostTypeText will get text from remote.
PostXMLText will get text from remote.
UploadHeaderText will get text from remote.
UploadMap will get map from remote.
UploadText will get text from remote.
# Constants
ContentTypeForm is web form content type.
ContentTypeJSON is json content type.
ContentTypeXML is xml content type.
# Variables
DefaultClient is default http client.
DefaultTransport is default http transport.
Shared is share client.
# Structs
Client is http get client.
FileBodyTask is upload task.
RawClient is http raw request impl.
No description provided by the author
# Type aliases
RawRequestF is raw request func define.