class dom::HttpRes

sys::Obj
  dom::HttpRes

@Js

Source

HttpRes models the response side of an XMLHttpRequest instance.

See pod doc for details.

content

Str content := ""

Source

The text content of the response when the XMLHttpRequest HttpReq.resType is "text"

contentBuf

Buf contentBuf := Buf.<ctor>(0)

Source

The binary content of the response when the XMLHttpRequest HttpReq.resType is "arraybuffer"

headers

Str:Str headers := ...

Source

The response headers.

status

Int status

Source

The HTTP status code of the response.