HttpResponse.render

Renders the response message, using the 200 "OK" status code. If a message body is provided, the "Content-Length" header field will be set and, if head is false, msg_body will be copied into an internal buffer.

  1. cstring render(cstring msg_body, bool head)
    class HttpResponse
    render
    (
    cstring msg_body = null
    ,
    bool head = false
    )
  2. cstring render(HttpResponseCode status, cstring msg_body, bool head)

Parameters

msg_body cstring

response message body

head bool

set to true if msg_body should actually not be appended to the response message (HEAD response)

Return Value

Type: cstring

Meta