summaryrefslogtreecommitdiff
path: root/lib/inets/src/http_server/httpd_internal.hrl
diff options
context:
space:
mode:
authorIngela Anderton Andin <ingela@erlang.org>2015-05-21 16:03:25 +0200
committerIngela Anderton Andin <ingela@erlang.org>2015-06-04 10:47:35 +0200
commitfdfda2fab0921d409789174556582db28141448e (patch)
tree3515e7d7dc29bda21a959bfd28a97fc1639933ce /lib/inets/src/http_server/httpd_internal.hrl
parente99daf3212fbc381074e5be229465e9b6269e204 (diff)
downloaderlang-fdfda2fab0921d409789174556582db28141448e.tar.gz
inets: Add profile option
To enable the HTTP server to run in a virtualized environment, where there can be more that one server that has the same bind_address and port, we add a new option profile. The profile name will be used in concatenation with bind_address and port to identify the HTTP server instance. The name profile was chosen as there is a similar concept in the HTTP client where profile names can be used to instantiate client configurations.
Diffstat (limited to 'lib/inets/src/http_server/httpd_internal.hrl')
-rw-r--r--lib/inets/src/http_server/httpd_internal.hrl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/inets/src/http_server/httpd_internal.hrl b/lib/inets/src/http_server/httpd_internal.hrl
index 108469ea0a..9829ca255c 100644
--- a/lib/inets/src/http_server/httpd_internal.hrl
+++ b/lib/inets/src/http_server/httpd_internal.hrl
@@ -31,6 +31,8 @@
-define(SOCKET_MAX_POLL,25).
-define(FILE_CHUNK_SIZE,64*1024).
-define(GATEWAY_INTERFACE,"CGI/1.1").
+-define(DEFAULT_PROFILE, default).
+
-define(NICE(Reason),lists:flatten(atom_to_list(?MODULE)++": "++Reason)).
-define(DEFAULT_CONTEXT,
[{errmsg,"[an error occurred while processing this directive]"},