mod_esi

mod_esi

Module

mod_esi

Module summary

Erlang Server Interface

Description

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.

Exports

deliver(SessionID, Data) -> ok | {error, Reason}

Types:

SessionID = term()
Data = string() | io_list() | binary()
Reason = term()

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.

Note

If any HTTP header fields are added by the script, they must be in the first call to deliver/2登录查看完整内容