Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPMethod ¶
type HTTPMethod string
const ( MethodHEAD HTTPMethod = "HEAD" MethodGET HTTPMethod = "GET" MethodPOST HTTPMethod = "POST" MethodOPTIONS HTTPMethod = "OPTIONS" MethodDELETE HTTPMethod = "DELETE" MethodPUT HTTPMethod = "PUT" MethodPATCH HTTPMethod = "PATCH" MethodTRACE HTTPMethod = "TRACE" MethodCONNECT HTTPMethod = "CONNECT" )
type Option ¶
type Option struct { Host string Uri string Method HTTPMethod Timeout time.Duration ConnectTimeout time.Duration Try int Interval int Headers map[string]string Query map[string]string Data string Stream chan string `json:"-"` ResponseHandler func(ctx *gin.Context, response *http.Response) (err error) `json:"-"` }
Click to show internal directories.
Click to hide internal directories.