View Source httpd_custom_api behaviour (inets v9.3.1)
Behaviour with optional callbacks to customize the inets HTTP server.
The module implementing this behaviour shall be supplied to to the servers configuration with the option customize
Summary
Callbacks
Filter and possible alter HTTP request headers before they are processed by the server.
Provide default headers for the HTTP servers responses. Note that this option may override built-in defaults.
Filter and possible alter HTTP response headers before they are sent to the client.
Callbacks
-callback request_header({Key :: string(), Value :: string()}) -> {true, {Key :: string(), Value :: string()}} | false.
Filter and possible alter HTTP request headers before they are processed by the server.
Provide default headers for the HTTP servers responses. Note that this option may override built-in defaults.
-callback response_header({Key :: string(), Value :: string()}) -> {true, {Key :: string(), Value :: string()}} | false | {true, string()}.
Filter and possible alter HTTP response headers before they are sent to the client.