docServerUserLandCom picture
Contents
Frontier Site

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


© Copyright 1992-2026 UserLand Software. Email: webmaster@userland.com.