Documentation ¶
Index ¶
- func AddAuthorInfo(req domain.BaseRequest, request *http.Request)
- func Base64(str string) (ret string)
- func DecodeResponseBody(resp *http.Response) (err error)
- func GenUrl(server string, path string) string
- func GetCookies(cookies []*http.Cookie, jarCookies []*http.Cookie) (ret []domain.ExecCookie)
- func GetHeaders(header http.Header) (headers []domain.Header)
- func IsFormBody(bodyType consts.HttpContentType) bool
- func IsFormUrlencodedBody(bodyType consts.HttpContentType) bool
- func IsHtmlContent(str string) bool
- func IsImageContent(str string) bool
- func IsJsonBody(bodyType consts.HttpContentType) bool
- func IsJsonContent(str string) bool
- func IsJsonResp(resp domain.DebugResponse) (ret bool)
- func IsJsonRespType(typ consts.HttpContentType) (ret bool)
- func IsStreamResponse(contentType consts.HttpContentType) bool
- func IsXmlContent(str string) bool
- func MultipartContentType(w *TFormDataWriter) string
- func UpdateUrl(url string) string
- func WrapperErrInResp(code int, statusContent string, content string, resp *domain.DebugResponse)
- type Request
- type Response
- type TFormDataWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAuthorInfo ¶
func AddAuthorInfo(req domain.BaseRequest, request *http.Request)
func DecodeResponseBody ¶
func GetCookies ¶
func IsFormBody ¶
func IsFormBody(bodyType consts.HttpContentType) bool
func IsFormUrlencodedBody ¶
func IsFormUrlencodedBody(bodyType consts.HttpContentType) bool
func IsHtmlContent ¶
func IsImageContent ¶
func IsJsonBody ¶
func IsJsonBody(bodyType consts.HttpContentType) bool
func IsJsonContent ¶
func IsJsonResp ¶
func IsJsonResp(resp domain.DebugResponse) (ret bool)
func IsJsonRespType ¶
func IsJsonRespType(typ consts.HttpContentType) (ret bool)
func IsStreamResponse ¶
func IsStreamResponse(contentType consts.HttpContentType) bool
func IsXmlContent ¶
func MultipartContentType ¶
func MultipartContentType(w *TFormDataWriter) string
func WrapperErrInResp ¶
func WrapperErrInResp(code int, statusContent string, content string, resp *domain.DebugResponse)
Types ¶
type TFormDataWriter ¶
func MultipartEncoder ¶
func MultipartEncoder(bodyFormData []domain.BodyFormDataItem) (tFormWriter *TFormDataWriter, err error)
Click to show internal directories.
Click to hide internal directories.