classafBedSheet::BedClientRes

sys::Obj
  afBedSheet::BedClientRes

For testing: Holds response data from a (fake) HTTP call to BedServer.

@since 1.0.4

asBuf

Source

Buf asBuf()

Return the response stream as a Buf.

asInStream

Source

InStream asInStream()

Return the response stream.

asStr

Source

Str asStr()

Return the response stream as a Str.

cookies

Source

Cookie[] cookies := Cookie[,] { private set }

Return the http response cookies (read-only). Use this rather than looking for Set-Cookie headers.

headers

Source

Str:Str headers := Utils.makeMap(Str#, Str#) { private set }

Return the http response headers (read-only).

statusCode

Source

Int statusCode { private set }

Return the http status code (read-only).