class dom::HttpRes
sys::Obj dom::HttpRes
@Js
HttpRes models the response side of an XMLHttpRequest instance.
See pod doc for details.
- content
-
Str content := ""
The text content of the response when the XMLHttpRequest
HttpReq.resType
is "text" - contentBuf
-
Buf contentBuf := Buf.<ctor>(0)
The binary content of the response when the XMLHttpRequest
HttpReq.resType
is "arraybuffer" - headers
-
The response headers.
- status
-
Int status
The HTTP status code of the response.