Versions in this module Expand all Collapse all v0 v0.1.1 Oct 15, 2023 Changes in this version + const NextProtoTLS + func NewHostClient(c *ClientOptions) client.HostClient + type ClientOptions struct + DialDualStack bool + DialTimeout time.Duration + Dialer network.Dialer + DisableHeaderNamesNormalizing bool + DisablePathNormalizing bool + MaxConnDuration time.Duration + MaxConnWaitTimeout time.Duration + MaxConns int + MaxIdleConnDuration time.Duration + MaxResponseBodySize int + Name string + NoDefaultUserAgentHeader bool + ObservationInterval time.Duration + ReadTimeout time.Duration + ResponseBodyStream bool + RetryConfig *retry.Config + RetryIfFunc client.RetryIfFunc + StateObserve config.HostClientStateFunc + TLSConfig *tls.Config + WriteTimeout time.Duration + type HostClient struct + Addr string + IsTLS bool + ProxyURI *protocol.URI + func (c *HostClient) Close() error + func (c *HostClient) CloseIdleConnections() + func (c *HostClient) ConnPoolState() config.ConnPoolState + func (c *HostClient) ConnectionCount() (count int) + func (c *HostClient) Do(ctx context.Context, req *protocol.Request, resp *protocol.Response) error + func (c *HostClient) DoDeadline(ctx context.Context, req *protocol.Request, resp *protocol.Response, ...) error + func (c *HostClient) DoRedirects(ctx context.Context, req *protocol.Request, resp *protocol.Response, ...) error + func (c *HostClient) DoTimeout(ctx context.Context, req *protocol.Request, resp *protocol.Response, ...) error + func (c *HostClient) Get(ctx context.Context, dst []byte, url string) (statusCode int, body []byte, err error) + func (c *HostClient) GetDeadline(ctx context.Context, dst []byte, url string, deadline time.Time) (statusCode int, body []byte, err error) + func (c *HostClient) GetTimeout(ctx context.Context, dst []byte, url string, timeout time.Duration) (statusCode int, body []byte, err error) + func (c *HostClient) LastUseTime() time.Time + func (c *HostClient) PendingRequests() int + func (c *HostClient) Post(ctx context.Context, dst []byte, url string, postArgs *protocol.Args) (statusCode int, body []byte, err error) + func (c *HostClient) SetDynamicConfig(dc *client.DynamicConfig) + func (c *HostClient) SetMaxConns(newMaxConns int) + func (c *HostClient) ShouldRemove() bool + func (c *HostClient) WantConnectionCount() (count int) + type Option struct + ContinueHandler func(header *protocol.RequestHeader) bool + DisableHeaderNamesNormalizing bool + DisableKeepalive bool + DisablePreParseMultipartForm bool + EnableTrace bool + GetOnly bool + HTMLRender render.HTMLRender + HijackConnHandle func(c network.Conn, h app.HijackHandler) + IdleTimeout time.Duration + MaxRequestBodySize int + NoDefaultServerHeader bool + ReadTimeout time.Duration + ServerName []byte + StreamRequestBody bool + TLS *tls.Config + type Server struct + Core suite.Core + func NewServer() *Server + func (s Server) Serve(c context.Context, conn network.Conn) (err error)