---
name: "httpd_custom_api"
section: "3erl"
platform: "linux"
package: "erlang-manpages"
version: "1:25.2.3+dfsg-1+deb12u4"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/httpd_custom_api"
---

# httpd\_custom\_api(3erl)

Behaviour with optional callbacks to customize the inets HTTP server.

## NAME

httpd\_custom\_api - 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()}\

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** \

Types:

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.
