classafButter::ButterResponse
sys::Obj afButter::ButterResponse
The HTTP response.
- body
Body body { private set }The request body.
- data
A temporary store for request data, use to pass data between middleware.
- headers
HttpResponseHeaders headers { private set }The HTTP repsonse headers.
- make
new make(|This in)it-block ctor.
- makeFromBuf
new makeFromBuf(Int statusCode, Str statusMsg, HttpResponseHeaders headers, Buf? body, |This? f := null)Create a response from a
Bufbody.- makeFromInStream
new makeFromInStream(InStream in)Creates a response reading real HTTP values from an
InStream. The whole response body is read in.- makeFromStr
new makeFromStr(Int statusCode, Str statusMsg, HttpResponseHeaders headers, Str? body, |This? f := null)Create a response from a
Strbody.- statusCode
Int statusCodeThe HTTP status code.
- statusMsg
Str statusMsgThe HTTP status message.
- version
Version version := Butter.http11HTTP version of the response.