Retrieving values from Env in mod_esi or webtools
Posted
by williamstw
on Stack Overflow
See other posts from Stack Overflow
or by williamstw
Published on 2010-03-23T10:02:54Z
Indexed on
2010/03/23
11:13 UTC
Read the original article
Hit count: 225
erlang
A complete noob question, but how exactly do I get values (e.g. path_info) from inside the callback? From the docs, I thought it was a list of tuples, which I thought would make it accessible via lists:keyfind, but I've had no luck. So far, all the examples I've found only show how to print everything with io_lib but not how to access the values by key...
Thanks, --tim
The docs:
Module:Function(SessionID, Env, Input)-> _
Types
SessionID = term()
Env = [EnvironmentDirectives] ++ ParsedHeader
EnvironmentDirectives = {Key, Value}
Key = query_string | content_length | server_software | gateway_interface | server_protocol | server_port | request_method | remote_addr | script_name. <v>Input = string()
© Stack Overflow or respective owner