UserLand Software Home  |  Manila  |  Radio  |  Support  |  News

DocServer

Prev | Next | WebServer Verbs > webserver.util.buildResponse

webserver.util.buildResponse

Syntax webserver.util.buildResponse (code, adrHeaderTable=nil, responseBody=nil)

Params code is the HTTP/1.1 result code to be used for the response.

adrHeaderTable, an optional parameter, is the address of a table containing additional response headers.

responseBody, an optional parameter, is the body to be returned as part of the response.

Action Builds an HTTP response.

Returns The HTTP response.

Notes The response will have Connection, Date, Server, and possibly Content-Length headers plus any headers specified in the table pointed to by adrHeaderTable.

This verb is used internally by the webserver framework. It's called from webserver.dispatch and webserver.server.

See Also webserver.dispatch

webserver.server

webserver.util.buildErrorPage

Prev | Next | WebServer Verbs > webserver.util.buildResponse

Anonymization by Anonymouse.org ~ Adverts
Anonymouse better ad-free, faster and with encryption?
X