Skip to content

Commit

Permalink
Doc
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrr committed Feb 1, 2022
1 parent b021d00 commit 372cb14
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions configure.go
Expand Up @@ -77,6 +77,16 @@ func ConfigureClient(c *fasthttp.HostClient, opts ClientOpts) error {
// established if the fasthttp server is using TLS.
//
// Future implementations may support HTTP/2 through plain TCP.
//
// This package currently supports the following fasthttp.Server settings:
// - Handler: Obviously, the handler is taken from the Server.
// - ReadTimeout: Will cancel a stream if the client takes more than ReadTimeout
// to send a request. This option NEVER closes the connection.
// - IdleTimeout: Will close the connection if the client doesn't send a request
// within the IdleTimeout. This option ignores any PING/PONG mechanism.
// To disable the option you can set it to zero. No value is taken by default,
// which means that by default ALL connections are open until either endpoint
// closes the connection.
func ConfigureServer(s *fasthttp.Server, cnf ServerConfig) *Server {
cnf.defaults()

Expand Down

0 comments on commit 372cb14

Please sign in to comment.