Documentation ¶
Index ¶
- Variables
- func Base64(str string) (ret string)
- func Connect(req domain.BaseRequest) (ret domain.DebugResponse, err error)
- func Delete(req domain.BaseRequest) (ret domain.DebugResponse, err error)
- func GenBodyFormData(req domain.BaseRequest) (formData []domain.BodyFormDataItem)
- func GenBodyFormDataFromItems(items *[]domain.BodyFormDataItem) (formData []domain.BodyFormDataItem)
- func GenBodyFormUrlencoded(req domain.BaseRequest) (ret string)
- func GenBodyFormUrlencodedFromItems(items *[]domain.BodyFormUrlEncodedItem) (ret string)
- func GenUrl(server string, path string) string
- func Get(req domain.BaseRequest) (ret domain.DebugResponse, err error)
- func Head(req domain.BaseRequest) (ret domain.DebugResponse, err error)
- 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 IsXmlContent(str string) bool
- func MultipartContentType(w *TFormDataWriter) string
- func Options(req domain.BaseRequest) (ret domain.DebugResponse, err error)
- func Patch(req domain.BaseRequest) (ret domain.DebugResponse, err error)
- func Post(req domain.BaseRequest) (ret domain.DebugResponse, err error)
- func Put(req domain.BaseRequest) (ret domain.DebugResponse, err error)
- func Trace(req domain.BaseRequest) (ret domain.DebugResponse, err error)
- func UpdateUrl(url string) string
- type Request
- type Response
- type TFormDataWriter
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger *zap.Logger
Functions ¶
func Connect ¶
func Connect(req domain.BaseRequest) (ret domain.DebugResponse, err error)
func Delete ¶
func Delete(req domain.BaseRequest) ( ret domain.DebugResponse, err error)
func GenBodyFormData ¶
func GenBodyFormData(req domain.BaseRequest) (formData []domain.BodyFormDataItem)
func GenBodyFormDataFromItems ¶
func GenBodyFormDataFromItems(items *[]domain.BodyFormDataItem) (formData []domain.BodyFormDataItem)
func GenBodyFormUrlencoded ¶
func GenBodyFormUrlencoded(req domain.BaseRequest) (ret string)
func GenBodyFormUrlencodedFromItems ¶
func GenBodyFormUrlencodedFromItems(items *[]domain.BodyFormUrlEncodedItem) (ret string)
func Get ¶
func Get(req domain.BaseRequest) (ret domain.DebugResponse, err error)
func Head ¶
func Head(req domain.BaseRequest) (ret domain.DebugResponse, err error)
func IsFormBody ¶
func IsFormBody(bodyType consts.HttpContentType) bool
func IsFormUrlencodedBody ¶
func IsFormUrlencodedBody(bodyType consts.HttpContentType) bool
func IsHtmlContent ¶
func IsHtmlContent(str string) bool
func IsImageContent ¶
func IsImageContent(str string) bool
func IsJsonBody ¶
func IsJsonBody(bodyType consts.HttpContentType) bool
func IsJsonContent ¶
func IsJsonContent(str string) bool
func IsJsonResp ¶
func IsJsonResp(resp domain.DebugResponse) (ret bool)
func IsJsonRespType ¶
func IsJsonRespType(typ consts.HttpContentType) (ret bool)
func IsXmlContent ¶
func IsXmlContent(str string) bool
func MultipartContentType ¶
func MultipartContentType(w *TFormDataWriter) string
func Options ¶
func Options(req domain.BaseRequest) (ret domain.DebugResponse, err error)
func Patch ¶
func Patch(req domain.BaseRequest) ( ret domain.DebugResponse, err error)
func Post ¶
func Post(req domain.BaseRequest) ( ret domain.DebugResponse, err error)
func Put ¶
func Put(req domain.BaseRequest) ( ret domain.DebugResponse, err error)
func Trace ¶
func Trace(req domain.BaseRequest) (ret domain.DebugResponse, err error)
Types ¶
type TFormDataWriter ¶
func MultipartEncoder ¶
func MultipartEncoder(bodyFormData []domain.BodyFormDataItem) (tFormWriter *TFormDataWriter, err error)
Click to show internal directories.
Click to hide internal directories.