-module(test_esi).
-export([yahoo/2, test/2]).
yahoo(_Env, _Input) ->
"Location: http://www.yahoo.com\r\n\r\n".
test(Env, Input) ->
[
"Content-type: text/html\r\n\r\n",
"
Example\r\n",
"\n",
"Self: ", io_lib:format("~p", [self()]), "
\n",
"Environment: ", io_lib:format("~p",[Env]), "
\n",
"Input: ", Input, "
\n",
"Parsed Input: ", io_lib:format("~p",[httpd:parse_query(Input)]), "\n",
"\n"
].