aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src/http_server/httpd_custom_api.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2015-12-15 09:41:01 +0100
committerIngela Anderton Andin <[email protected]>2015-12-15 09:41:01 +0100
commitd7cd5ee8a34d289fbc91627a3f096a870bf70393 (patch)
treec520fcd5d3d8f2cd4a02541c6b17affa151af572 /lib/inets/src/http_server/httpd_custom_api.erl
parent995f437e6d4d9e1b42a3be1b181c9c52265c4274 (diff)
parent8feea6e7ff910a32accb5587a2245f5725d7b38c (diff)
downloadotp-d7cd5ee8a34d289fbc91627a3f096a870bf70393.tar.gz
otp-d7cd5ee8a34d289fbc91627a3f096a870bf70393.tar.bz2
otp-d7cd5ee8a34d289fbc91627a3f096a870bf70393.zip
Merge branch 'maint'
Diffstat (limited to 'lib/inets/src/http_server/httpd_custom_api.erl')
-rw-r--r--lib/inets/src/http_server/httpd_custom_api.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/inets/src/http_server/httpd_custom_api.erl b/lib/inets/src/http_server/httpd_custom_api.erl
index 282f3a6ee6..d5a6fa8715 100644
--- a/lib/inets/src/http_server/httpd_custom_api.erl
+++ b/lib/inets/src/http_server/httpd_custom_api.erl
@@ -23,7 +23,8 @@
-callback response_default_headers() ->
[{Key::string(), Value::string()}].
-callback response_header({Key::string(), Value::string()}) ->
- {true, {Key::string(), Value::string()}} | false.
+ {true, {Key::string(), Value::string()}} | false |
+ {true, string()}. %% Used internally to avoid traversing headers twice
-callback request_header({Key::string(), Value::string()}) ->
{true, {Key::string(), Value::string()}} | false.