Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomHttpResponseLog ¶
func CustomHttpResponseLog(c core.Context, responseLogHandler HttpResponseLogHandlerFunc) core.Context
CustomHttpResponseLog returns a context with http response log handler
func NewHttpClient ¶
func NewHttpClient(requestTimeout uint32, proxy string, skipTLSVerify bool, defaultUserAgent string, enableHttpResponseLog bool) *http.Client
NewHttpClient creates and returns a new http client with specified settings
func SetProxyUrl ¶
SetProxyUrl sets proxy url to http transport according to specified proxy setting
Types ¶
type HttpResponseLogHandlerFunc ¶
type HttpResponseLogHandlerFunc func([]byte)
HttpResponseLogHandlerFunc represents the http response log handler function
Click to show internal directories.
Click to hide internal directories.