Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalMapmap = make(map[string]string)
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct { Name string `json:"name"` Method string `json:"method"` Url *url.URL `json:"url"` Query map[string]string `json:"query"` Body string `json:"body"` Headers map[string]string `json:"headers"` Timeout int `json:"timeout" default:"5 毫秒"` Retry int `json:"retry" default:"0"` ExpectBody map[string]interface{} // contains filtered or unexported fields }
func NewRequest ¶
func (*Request) SetExpectBody ¶
type Response ¶
type Response struct { StatusCode int `json:"status_code"` Reason string `json:"reason"` Headers map[string]string `json:"headers"` ContentType string `json:"content-type"` Result string `json:"result"` Error error `json:"error"` StartTime int64 `json:"startTime"` EndTime int64 `json:"endTime"` Cost int64 `json:"cost"` Req *Request `json:"request"` Url string `json:"url"` // contains filtered or unexported fields }
func PostMultipart ¶
func (Response) GetExpectBody ¶
Click to show internal directories.
Click to hide internal directories.