Versions in this module Expand all Collapse all v0 v0.1.1 Oct 15, 2023 Changes in this version + func SetPreDefinedOpts(opts ...RequestOption) + type ClientOption struct + F func(o *ClientOptions) + type ClientOptions struct + DialDualStack bool + DialTimeout time.Duration + Dialer network.Dialer + DisableHeaderNamesNormalizing bool + DisablePathNormalizing bool + HostClientConfigHook func(hc interface{}) error + HostClientStateObserve HostClientStateFunc + KeepAlive bool + MaxConnDuration time.Duration + MaxConnWaitTimeout time.Duration + MaxConnsPerHost int + MaxIdleConnDuration time.Duration + MaxResponseBodySize int + Name string + NoDefaultUserAgentHeader bool + ObservationInterval time.Duration + ReadTimeout time.Duration + ResponseBodyStream bool + RetryConfig *retry.Config + TLSConfig *tls.Config + WriteTimeout time.Duration + func NewClientOptions(opts []ClientOption) *ClientOptions + func (o *ClientOptions) Apply(opts []ClientOption) + type ConnPoolState struct + Addr string + PoolConnNum int + TotalConnNum int + WaitConnNum int + type HostClientState interface + ConnPoolState func() ConnPoolState + type HostClientStateFunc func(HostClientState) + type Option struct + F func(o *Options) + type Options struct + ALPN bool + Addr string + AltTransporterNewer func(opt *Options) network.Transporter + AutoReloadInterval time.Duration + AutoReloadRender bool + BasePath string + BindConfig interface{} + CustomBinder interface{} + CustomValidator interface{} + DisableHeaderNamesNormalizing bool + DisableKeepalive bool + DisablePreParseMultipartForm bool + DisablePrintRoute bool + ExitWaitTimeout time.Duration + GetOnly bool + H2C bool + HandleMethodNotAllowed bool + IdleTimeout time.Duration + KeepAliveTimeout time.Duration + ListenConfig *net.ListenConfig + MaxKeepBodySize int + MaxRequestBodySize int + Network string + NoDefaultServerHeader bool + OnAccept func(conn net.Conn) context.Context + OnConnect func(ctx context.Context, conn network.Conn) context.Context + ReadBufferSize int + ReadTimeout time.Duration + RedirectFixedPath bool + RedirectTrailingSlash bool + Registry registry.Registry + RegistryInfo *registry.Info + RemoveExtraSlash bool + StreamRequestBody bool + TLS *tls.Config + TraceLevel interface{} + Tracers []interface{} + TransporterNewer func(opt *Options) network.Transporter + UnescapePathValues bool + UseRawPath bool + ValidateConfig interface{} + WriteTimeout time.Duration + func NewOptions(opts []Option) *Options + func (o *Options) Apply(opts []Option) + type RequestOption struct + F func(o *RequestOptions) + func WithDialTimeout(t time.Duration) RequestOption + func WithReadTimeout(t time.Duration) RequestOption + func WithRequestTimeout(t time.Duration) RequestOption + func WithSD(b bool) RequestOption + func WithTag(k, v string) RequestOption + func WithWriteTimeout(t time.Duration) RequestOption + type RequestOptions struct + func NewRequestOptions(opts []RequestOption) *RequestOptions + func (o *RequestOptions) Apply(opts []RequestOption) + func (o *RequestOptions) CopyTo(dst *RequestOptions) + func (o *RequestOptions) DialTimeout() time.Duration + func (o *RequestOptions) IsSD() bool + func (o *RequestOptions) ReadTimeout() time.Duration + func (o *RequestOptions) RequestTimeout() time.Duration + func (o *RequestOptions) StartRequest() + func (o *RequestOptions) StartTime() time.Time + func (o *RequestOptions) Tag(k string) string + func (o *RequestOptions) Tags() map[string]string + func (o *RequestOptions) WriteTimeout() time.Duration