- cgi_set(+CGIStream, ?Property) is det
- Change one of the properies. Supported properties are:
- request(+Term)
- Associate a request to the stream.
- header(+Term)
- Register a reply header. This header is normally retrieved
from the
send_header
hook to send the reply header to the
client.
- connection(-Connection)
- One of
Keep-Alive
or close
.
- transfer_encoding(-Tranfer)
- One of
chunked
or none
. Initially set to none
. When
switching to chunked
from the header
hook, it calls the
send_header
hook and if there is data queed this is send
as first chunk. Each subsequent write to the CGI stream
emits a chunk. The implementation does not use the
chunked stream filter defined by http_chunked_open/3. It
shares most of the implementation though and CGI streams
do support http_is_chunked/1, http_chunked_flush/2 and
http_chunked_add_trailer/3.