httpd_custom_api

httpd_custom_api

Module

httpd_custom_api

Module summary

Behaviour with optional callbacks to customize the inets HTTP server.

Description

The module implementing this behaviour shall be supplied to to the servers configuration with the option customize

Exports

response_default_headers() -> [Header]

Types:

Header = {HeaderName :: string(), HeaderValue::string()}

string:to_lower/1 will be performed on the HeaderName

Provide default headers for the HTTP servers responses. Note that this option may override built-in defaults.

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

Types:

Header = {HeaderName :: string(), HeaderValue::string()}登录查看完整内容