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.
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
If the HTTP request is a 'post' request and a body is sent,
Use this callback function to generate dynamic web
content dynamically. When a part of the page is generated, send the
data back to the client through
This callback format consumes much memory, as the
whole response must be generated before it is sent to the
user. This function is deprecated and is only kept for backwards
compatibility.
For new development, use