Skip to main content

httpool

函数名函数描述/介绍
httpool.Pool
httpool.connPool
httpool.context
httpool.fuzz
httpool.fuzzParams
httpool.host
httpool.https
httpool.noFixContentLength
httpool.noRedirect
httpool.perRequestTimeout
httpool.port
httpool.proxy
httpool.rawMode
httpool.redirectTimes
httpool.size

函数定义#

Pool#

详细描述#

定义#

Pool(i any, opts ...HttpPoolConfigOption) (chan *HttpResult, error)

参数#

参数名参数类型参数解释
iany
opts...HttpPoolConfigOption

返回值#

返回值(顺序)返回值类型返回值解释
r1chan *HttpResult
r2error

connPool#

详细描述#

定义#

connPool(b bool) HttpPoolConfigOption

参数#

参数名参数类型参数解释
bbool

返回值#

返回值(顺序)返回值类型返回值解释
r1HttpPoolConfigOption

context#

详细描述#

定义#

context(ctx context.Context) HttpPoolConfigOption

参数#

参数名参数类型参数解释
ctxcontext.Context

返回值#

返回值(顺序)返回值类型返回值解释
r1HttpPoolConfigOption

fuzz#

详细描述#

定义#

fuzz(b bool) HttpPoolConfigOption

参数#

参数名参数类型参数解释
bbool

返回值#

返回值(顺序)返回值类型返回值解释
r1HttpPoolConfigOption

fuzzParams#

详细描述#

定义#

fuzzParams(i any) HttpPoolConfigOption

参数#

参数名参数类型参数解释
iany

返回值#

返回值(顺序)返回值类型返回值解释
r1HttpPoolConfigOption

host#

详细描述#

定义#

host(h string, isHttps bool) HttpPoolConfigOption

参数#

参数名参数类型参数解释
hstring
isHttpsbool

返回值#

返回值(顺序)返回值类型返回值解释
r1HttpPoolConfigOption

https#

详细描述#

定义#

https(f bool) HttpPoolConfigOption

参数#

参数名参数类型参数解释
fbool

返回值#

返回值(顺序)返回值类型返回值解释
r1HttpPoolConfigOption

noFixContentLength#

详细描述#

定义#

noFixContentLength(f bool) HttpPoolConfigOption

参数#

参数名参数类型参数解释
fbool

返回值#

返回值(顺序)返回值类型返回值解释
r1HttpPoolConfigOption

noRedirect#

详细描述#

定义#

noRedirect(i bool) HttpPoolConfigOption

参数#

参数名参数类型参数解释
ibool

返回值#

返回值(顺序)返回值类型返回值解释
r1HttpPoolConfigOption

perRequestTimeout#

详细描述#

定义#

perRequestTimeout(f float64) HttpPoolConfigOption

参数#

参数名参数类型参数解释
ffloat64

返回值#

返回值(顺序)返回值类型返回值解释
r1HttpPoolConfigOption

port#

详细描述#

定义#

port(port int) HttpPoolConfigOption

参数#

参数名参数类型参数解释
portint

返回值#

返回值(顺序)返回值类型返回值解释
r1HttpPoolConfigOption

proxy#

详细描述#

定义#

proxy(proxies ...string) HttpPoolConfigOption

参数#

参数名参数类型参数解释
proxies...string

返回值#

返回值(顺序)返回值类型返回值解释
r1HttpPoolConfigOption

rawMode#

详细描述#

定义#

rawMode(b bool) HttpPoolConfigOption

参数#

参数名参数类型参数解释
bbool

返回值#

返回值(顺序)返回值类型返回值解释
r1HttpPoolConfigOption

redirectTimes#

详细描述#

定义#

redirectTimes(f int) HttpPoolConfigOption

参数#

参数名参数类型参数解释
fint

返回值#

返回值(顺序)返回值类型返回值解释
r1HttpPoolConfigOption

size#

详细描述#

定义#

size(i int) HttpPoolConfigOption

参数#

参数名参数类型参数解释
iint

返回值#

返回值(顺序)返回值类型返回值解释
r1HttpPoolConfigOption