httpclient

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 7 Imported by: 0

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

func SetProxyUrl(transport *http.Transport, proxy string)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL