From a2a1883e04aaa923b385cbbc496395ed5bf1dc17 Mon Sep 17 00:00:00 2001
From: tmanevik This module defines the Erlang Server Interface (ESI) API.
- It 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.
+Sends data from an 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.
+If any HTTP header fields are added by the
+ script, they must be in the first call to
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 uses when
If the HTTP request is a 'post' request and a body is sent,
+
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
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 a lot of memory since the +
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 only kept for backwards + user. This function is deprecated and is only kept for backwards compatibility. - For new development Module:Function/3 should be used.
+ For new development, use