deliver(SessionID, Data) -> ok | {error, Reason}
Types
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 deliver/2
, and the data in the call must be a string. Calls after the headers are complete can contain binary data to reduce copying overhead. Do not assume anything about the data type of SessionID
. SessionID
must be the value given as input to the ESI callback function that you implemented.