Documentation ¶
Index ¶
- func PostWithTime(ctx context.Context, url string, data string, timeout int64) (re []byte)
- func Request(ctx context.Context, url string, method string, data string, ...) (re []byte)
- func RequestUrlencoded(ctx context.Context, url string, method string, data map[string]string, ...) (re []byte)
- func RequestWithCat(ctx context.Context, urlRaw string, method string, data string, ...) (re []byte)
- func RequestWithResp(ctx context.Context, url string, method string, data string, ...) (re []byte, response *http.Response)
- type Resp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PostWithTime ¶
func Request ¶
func Request(ctx context.Context, url string, method string, data string, header map[string]string, timeout int64) (re []byte)
通用http请求
func RequestUrlencoded ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.