classafButter::ButterResponse

sys::Obj
  afButter::ButterResponse

The HTTP response.

body

Source

Body body { private set }

The request body.

data

Source

Str:Obj data := [Str:Obj][:]

A temporary store for request data, use to pass data between middleware.

dump

Source

Str dump(Bool dumpBody := true)

Dumps a debug string that in some way resembles the full HTTP response.

headers

Source

HttpResponseHeaders headers { private set }

The HTTP repsonse headers.

make

Source

new make(Int statusCode, [Str:Str]? headers := null, Obj? body := null)

Create a response. body may either be a Str or a Buf.

makeFromInStream

Source

new makeFromInStream(InStream in)

Creates a response reading real HTTP values from an InStream. Note the whole response body is read in.

statusCode

Source

Int statusCode

The HTTP status code.

statusMsg

Source

Str statusMsg

The HTTP status message.

version

Source

Version version := Butter.http11

HTTP version of the response.