diff options
author | Erlang/OTP <[email protected]> | 2015-10-05 11:00:48 +0200 |
---|---|---|
committer | Erlang/OTP <[email protected]> | 2015-10-05 11:00:48 +0200 |
commit | cf1351a19b7c3edd613d1c8cde139f917f7583cb (patch) | |
tree | 9de64d7e8d87d7e6b494f209c0d3529a572806cc /lib/inets/doc/src/httpd_custom_api.xml | |
parent | 1523be48ab4071b158412f4b06fe9c8d6ba3e73c (diff) | |
parent | c4bd1ea37ac2ace2bed1b82962248efb3e780b5d (diff) | |
download | otp-cf1351a19b7c3edd613d1c8cde139f917f7583cb.tar.gz otp-cf1351a19b7c3edd613d1c8cde139f917f7583cb.tar.bz2 otp-cf1351a19b7c3edd613d1c8cde139f917f7583cb.zip |
Merge branch 'ia/inets/custom-header-add-default/OTP-13013' into maint-18
* ia/inets/custom-header-add-default/OTP-13013:
inets: Prepare for release
inets: Add new customize function response_default_headers
inets: Add behaviour httpd_custom_api
Diffstat (limited to 'lib/inets/doc/src/httpd_custom_api.xml')
-rw-r--r-- | lib/inets/doc/src/httpd_custom_api.xml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/inets/doc/src/httpd_custom_api.xml b/lib/inets/doc/src/httpd_custom_api.xml index 23417900fa..d2e5441895 100644 --- a/lib/inets/doc/src/httpd_custom_api.xml +++ b/lib/inets/doc/src/httpd_custom_api.xml @@ -33,6 +33,20 @@ </description> <funcs> + <func> + <name>response_default_headers() -> [Header] </name> + <fsummary>Provide default headers for the HTTP servers responses.</fsummary> + <type> + <v>Header = {HeaderName :: string(), HeaderValue::string()}</v> + <d>string:to_lower/1 will be performed on the HeaderName</d> + </type> + <desc> + <p>Provide default headers for the HTTP servers responses. Note that this + option may override built-in defaults. + </p> + </desc> + </func> + <func> <name>response_header({HeaderName, HeaderValue}) -> {true, Header} | false </name> <fsummary>Filter and possible alter HTTP response headers.</fsummary> |