diff options
author | Ingela Anderton Andin <[email protected]> | 2015-09-30 15:28:59 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2015-09-30 17:02:50 +0200 |
commit | ec1284c810cdc176b93d7316e78dc9c6aa84a504 (patch) | |
tree | 40081238d8409d1d868ee20c9dbcc3b1d6e1c32c /lib/inets/src/http_server/httpd_custom.erl | |
parent | 1523be48ab4071b158412f4b06fe9c8d6ba3e73c (diff) | |
download | otp-ec1284c810cdc176b93d7316e78dc9c6aa84a504.tar.gz otp-ec1284c810cdc176b93d7316e78dc9c6aa84a504.tar.bz2 otp-ec1284c810cdc176b93d7316e78dc9c6aa84a504.zip |
inets: Add behaviour httpd_custom_api
Add this now as 18 allows optional callback specs
Diffstat (limited to 'lib/inets/src/http_server/httpd_custom.erl')
-rw-r--r-- | lib/inets/src/http_server/httpd_custom.erl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/inets/src/http_server/httpd_custom.erl b/lib/inets/src/http_server/httpd_custom.erl index a1fe058bd1..b62fc25fac 100644 --- a/lib/inets/src/http_server/httpd_custom.erl +++ b/lib/inets/src/http_server/httpd_custom.erl @@ -23,7 +23,13 @@ -export([response_header/1, request_header/1]). -export([customize_headers/3]). --include_lib("inets/src/inets_app/inets_internal.hrl"). +-include("../inets_app/inets_internal.hrl"). + +-behaviour(httpd_custom_api). + +%%-------------------------------------------------------------------- +%% Behavior API ----------------------------------- +%%-------------------------------------------------------------------- response_header(Header) -> {true, httpify(Header)}. |