Documentation ¶
Index ¶
- type HttpClientModule
- func (m *HttpClientModule) Init(proxyUrl string, maxpool int, dialTimeout time.Duration, ...)
- func (m *HttpClientModule) InitHttpClient(transport http.RoundTripper, timeout time.Duration, ...)
- func (m *HttpClientModule) Request(method string, url string, body []byte, header http.Header) HttpResponse
- func (m *HttpClientModule) SetTimeOut(value time.Duration)
- func (m *HttpClientModule) SyncRequest(method string, url string, body []byte, header http.Header) SyncHttpResponse
- type HttpResponse
- type SyncHttpResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpClientModule ¶
func (*HttpClientModule) InitHttpClient ¶ added in v1.21.9
func (m *HttpClientModule) InitHttpClient(transport http.RoundTripper, timeout time.Duration, checkRedirect func(req *http.Request, via []*http.Request) error)
func (*HttpClientModule) Request ¶
func (m *HttpClientModule) Request(method string, url string, body []byte, header http.Header) HttpResponse
func (*HttpClientModule) SetTimeOut ¶
func (m *HttpClientModule) SetTimeOut(value time.Duration)
func (*HttpClientModule) SyncRequest ¶
func (m *HttpClientModule) SyncRequest(method string, url string, body []byte, header http.Header) SyncHttpResponse
type HttpResponse ¶
type SyncHttpResponse ¶
type SyncHttpResponse struct {
// contains filtered or unexported fields
}
func (*SyncHttpResponse) Get ¶
func (slf *SyncHttpResponse) Get(timeoutMs int) HttpResponse
Click to show internal directories.
Click to hide internal directories.