httpd_custom_api

(inets)

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

Functions


response_header({HeaderName, HeaderValue}) -> {true, Header} | false

  • Header = {HeaderName :: string(), HeaderValue::string()}
  • The header name will be in lower case and should not be altered.

Filter and possible alter HTTP response headers before they are sent to the client.

request_header({HeaderName, HeaderValue}) -> {true, Header} | false

  • Header = {HeaderName :: string(), HeaderValue::string()}
  • The header name will be in lower case and should not be altered.

Filter and possible alter HTTP request headers before they are processed by the server.