{"modulePath":"github.com/duanhf2012/origin","version":"v1.21.11","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package httpclientmodule\n\n## Types\n\n```go\ntype HttpClientModule struct {\n\tservice.Module\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (m *HttpClientModule) Init(proxyUrl string, maxpool int, dialTimeout time.Duration, dialKeepAlive time.Duration, idleConnTimeout time.Duration, timeout time.Duration)\n```\n\n```go\nfunc (m *HttpClientModule) InitHttpClient(transport http.RoundTripper, timeout time.Duration, checkRedirect func(req *http.Request, via []*http.Request) error)\n```\n\n```go\nfunc (m *HttpClientModule) Request(method string, url string, body []byte, header http.Header) HttpResponse\n```\n\n```go\nfunc (m *HttpClientModule) SetTimeOut(value time.Duration)\n```\n\n```go\nfunc (m *HttpClientModule) SyncRequest(method string, url string, body []byte, header http.Header) SyncHttpResponse\n```\n\n```go\ntype HttpResponse struct {\n\tErr        error\n\tHeader     http.Header\n\tStatusCode int\n\tStatus     string\n\tBody       []byte\n}\n```\n\n```go\ntype SyncHttpResponse struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (slf *SyncHttpResponse) Get(timeoutMs int) HttpResponse\n```\n\n","path":"github.com/duanhf2012/origin/sysmodule/httpclientmodule","name":"httpclientmodule","synopsis":"","isRedistributable":true}
