This module defines the API - Erlang Server Interface (ESI). Which is a more efficient way of writing erlang scripts for your Inets web server than writing them as common CGI scripts.
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 a Erl Scheme script back to the client.
Note that if any HTTP-header fields should be added by the script they must be in the first call to deliver/2 and the data in the call must be a string. Calls after the headers are complete may contain binary data to reduce copying overhead. Do not assume anything about the data type of SessionID, the SessionID must be the value given as input to the esi call back function that you implemented.
The
If the HTTP request is a post request and a body is sent then content_length will be the length of the posted data. If get is used query_string will be the data after ? in the url.
ParsedHeader is the HTTP request as a key value tuple list. The keys in parsed header will be the in lower case.
SessionID is a identifier
the server use when
Use this callback function to dynamically generate dynamic web
content. when a part of the page is generated send the
data back to the client through
This callback format consumes quite much memory since the whole response must be generated before it is sent to the user. This functions is deprecated and only keept for backwards compatibility. For new development Module:Function/3 should be used.