Documentation ¶
Index ¶
- type HttpClientModule
- func (m *HttpClientModule) Init(maxpool int, proxyUrl string)
- 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) Init ¶
func (m *HttpClientModule) Init(maxpool int, proxyUrl string)
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.