The cowboy_protocol
module implements HTTP/1.1 and HTTP/1.0 as a Ranch protocol.
Configuration for the HTTP protocol handler.
This configuration is passed to Cowboy when starting listeners using cowboy:start_http/4
or cowboy:start_https/4
functions.
It can be updated without restarting listeners using the Ranch functions ranch:get_protocol_options/1
and ranch:set_protocol_options/2
.
The default value is given next to the option name.
When enabled, Cowboy will attempt to compress the response body.
Initial middleware environment.
Maximum number of empty lines before a request.
Maximum length of header names.
Maximum length of header values.
Maximum number of headers allowed per request.
Maximum number of requests allowed per connection.
Maximum length of the request line.
List of middlewares to execute for every requests.
Fun called every time a request is received.
Fun called every time a response is sent.
Time in ms with no requests before Cowboy closes the connection.
None.