Documentation ¶
Index ¶
- func ParseQuery(qr map[string]any) string
- type HttpX
- func (h *HttpX) GET(u string) (*http.Response, error)
- func (h *HttpX) GETWithContext(ctx context.Context, u string) (*http.Response, error)
- func (h *HttpX) POST(url string, data []byte) (*http.Response, error)
- func (h *HttpX) POSTWithContext(ctx context.Context, url string, data []byte) (*http.Response, error)
- func (h *HttpX) SetBasicAuth(username, password string) *HttpX
- func (h *HttpX) SetHeader(headers map[string]string) *HttpX
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HttpX ¶
func (*HttpX) GETWithContext ¶ added in v0.0.16
func (*HttpX) POSTWithContext ¶
func (h *HttpX) POSTWithContext(ctx context.Context, url string, data []byte) (*http.Response, error)
POSTWithContext 发起post请求
Click to show internal directories.
Click to hide internal directories.