type

HttpRes

src @Js
class HttpRes : Obj

HttpRes models the response side of an XMLHttpRequest instance.

See pod doc for details.

fields

content

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

contentBuf

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

headers

The response headers.

status

The HTTP status code of the response.

Slot Details

content

src Str content := ""

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

contentBuf

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

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

headers

src Str:Str headers := ...

The response headers.

status

src Int status

The HTTP status code of the response.