httpd_custom_api(3erl)
π¦ httpd_custom_api(3erl) π¦
okay so bestie, welcome to httpd_custom_api(3erl) β an Erlang Module Definition from the inets manual. This is literally the behaviour with optional callbacks that lets you 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 the servers configuration with the option customize. Thatβs the hookup, iykyk. π«Ά
π₯ 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. Slay, but carefully.
π¦ 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 possibly alter HTTP response headers before they are sent to the client. yes bestie, before they hit 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 possibly alter HTTP request headers before they are processed by the server. iconic pre-processing energy. β
shoutout to Ericsson AB, inets 8.3.1.2, and httpd_custom_api(3erl) β thatβs the footer energy, bestie. π β¨
π¦ where this page comes from
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms