This module defines the Erlang Server Interface (ESI) API.
It is a more efficient way of writing Erlang scripts
for your
The following data types are used in the functions for mod_esi:
Currently supported key value pairs
Indicates the inets version.
The local hostname.
Legacy string used in CGI, just ignore.
HTTP version, currently "HTTP/1.1"
Servers port number.
HTTP request method.
The clients ip address.
For TLS connections where client certificates are used this will
be an ASN.1 DER-encoded X509-certificate as an Erlang binary.
If client certificates are not used the value will be
Request URI
example: {http_content_type, "text/html"}
This function is only intended to be used from functions called by the Erl Scheme interface to deliver parts of the content to the user.
Sends data from an Erl Scheme script back to the client.
If any HTTP header fields are added by the
script, they must be in the first call to
Note that if the body is
small all data may be delivered in only one chunk and then the
callback will be called with {last, Data::binary(), undefined}
without getting called with
This callback format consumes much memory, as the
whole response must be generated before it is sent to the
user. This callback format is deprecated.
For new development, use