type
fields
statusCode |
Get or set the HTTP status code for this response. |
---|---|
statusMsg |
Map of HTTP status codes to status messages. |
statusPhrase |
Reason phrase to include in HTTP response line. |
methods
cookies |
Get the list of cookies to set via header fields. |
---|---|
done |
Done is called to indicate that that response is complete to terminate pipeline processing. |
headers |
Map of HTTP response headers. |
isCommitted |
Return true if this response has been commmited. |
isDone |
Return if this response is complete - see |
out |
Return the WebOutStream for this response. |
redirect |
Send a redirect response to the client using the specified status code and url. |
removeCookie |
Remove a cookie for this response. |
sendErr |
Send an error response to client using the specified status and HTML formatted message. |
Slot Details
cookies
done
headers
isCommitted
isDone
out
src
abstract WebOutStream out()
Return the WebOutStream for this response. The first time this method is accessed the response is committed: all headers currently set will be written to the stream, and can no longer be modified. If the "Content-Length" header defines a fixed number of bytes, then attemps to write too many bytes will throw an IOErr. If "Content-Length" is not defined, then a chunked transfer encoding is automatically used.
redirect
removeCookie
sendErr
statusCode
statusMsg
statusPhrase
src
abstract Str? statusPhrase
Reason phrase to include in HTTP response line. If null, then a status phrase is used based on the statusCode
.