classafButter::ButterResponse
sys::Obj afButter::ButterResponse
The HTTP response.
- asBuf
Buf asBuf()Return the response stream as a
Buf.Convenience for in.readAllBuf. This method closes the response stream.
- asInStream
InStream asInStream()Returns the response stream.
- asStr
Str asStr()Reads the response stream and converts it to a
Strusing the charset defined in theContent-Typeheader.This method closes the response stream.
- body
Buf bodyThe request body.
- data
A temporary store for request data, use to pass data between middleware.
- headers
HttpResponseHeaders headersThe HTTP repsonse headers.
- makeFromBuf
new makeFromBuf(Int statusCode, Str statusMsg, Str:Str headers, Buf body, |This? f := null)- makeFromStr
new makeFromStr(Int statusCode, Str statusMsg, Str:Str headers, Str body, |This? f := null)- statusCode
Int statusCodeThe HTTP status code.
- statusMsg
Str statusMsgThe HTTP status message.
- toStr
virtual override Str toStr()- version
Version version := Butter.http11HTTP version of the response.