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
Buf
body.- 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
Str
body.- statusCode
Int statusCode
The HTTP status code.
- statusMsg
Str statusMsg
The HTTP status message.
- version
Version version := Butter.http11
HTTP version of the response.