handy_httpd.responses

Undocumented in source.

Members

Functions

fileResponse
HttpResponse fileResponse(string filename, string type)

Convenience method to send a file response to a request.

methodNotAllowed
HttpResponse methodNotAllowed()

Convenience method to send a method not allowed response.

notFound
HttpResponse notFound()
Undocumented in source. Be warned that the author may not have intended to support it.
okResponse
HttpResponse okResponse()

Convenience method to prepare a simple 200 OK response.

Meta