summaryrefslogtreecommitdiff
path: root/src/tools/httpd_inets.erl
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2014-03-21 10:20:45 +0100
committerLinus Nordberg <linus@nordberg.se>2014-03-21 10:20:45 +0100
commit37e2c08b223d62e074c06d6214ac36443166bdaf (patch)
tree092afd32541ec4b1e3743a0aa4bb457157682a78 /src/tools/httpd_inets.erl
parentfe30da9f73a30c1039b70bbf34df50dc4e29171d (diff)
Add dynamic config to httpd server.
Diffstat (limited to 'src/tools/httpd_inets.erl')
-rw-r--r--src/tools/httpd_inets.erl8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tools/httpd_inets.erl b/src/tools/httpd_inets.erl
new file mode 100644
index 0000000..161d0f5
--- /dev/null
+++ b/src/tools/httpd_inets.erl
@@ -0,0 +1,8 @@
+-module('httpd_inets').
+-export([hello/3]).
+
+hello(SessionID, _Env, _Input) ->
+ mod_esi:deliver(SessionID, [
+ "Content-Type: text/html\r\n\r\n",
+ "<html><body>hello, erlang world</body></html>"
+ ]).