package
0.0.69
Repository: https://github.com/oarkflow/frame.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

Do performs the given http request and fills the given http response.
DoDeadline performs the given request and waits for response until the given deadline.
DoRedirects performs the given http request and fills the given http response, following up to maxRedirectsCount redirects.
DoTimeout performs the given request and waits for response during the given timeout duration.
Get returns the status code and body of url.
GetDeadline returns the status code and body of url.
GetTimeout returns the status code and body of url.
NewClient return a client with options.
Post
Post sends POST request to the given url with the given POST arguments.
WithClientReadTimeout sets maximum duration for full response reading (including body).
WithConnStateObserve sets the connection state observation function.
WithDialer sets the specific dialer.
WithDialFunc is used to set dialer function.
WithDialTimeout sets dial timeout.
WithDisableHeaderNamesNormalizing is used to set whether disable header names normalizing.
WithDisablePathNormalizing sets whether disable path normalizing.
WithKeepAlive determines whether use keep-alive connection.
WithMaxConnDuration sets max connection duration, keep-alive connections are closed after this duration.
WithMaxConnsPerHost sets maximum number of connections per host which may be established.
WithMaxConnWaitTimeout sets maximum duration for waiting for a free connection.
WithMaxIdleConnDuration sets max idle connection duration, idle keep-alive connections are closed after this duration.
WithName sets client name which used in User-Agent Header.
WithNoDefaultUserAgentHeader sets whether no default User-Agent header.
WithResponseBodyStream is used to determine whether read body in stream or not.
No description provided by the author
WithTLSConfig sets tlsConfig to create a tls connection.
WithWriteTimeout sets write timeout.

# Structs

Client implements http client.

# Type aliases

Endpoint represent one method for calling from remote.
Middleware deal with input Endpoint and output Endpoint.