Member predicate ClientRequest::getAResponseDataNode
Gets a data flow node that refers to some representation of the response, possibly wrapped in a promise object.
The responseType
describes how the response is represented as a JavaScript value
(after resolving promises), and may assume the following values:
- Any response type defined by XMLHttpRequest:
text
: The result is a stringjson
: The result is a deserialized JSON objectarraybuffer
: The result is anArrayBuffer
objectblob
: The result is aBlob
objectdocument
: The result is a deserialized HTML or XML document
- Any of the following additional response types defined by this library:
fetch.response
: The result is aResponse
object from fetch.stream
: The result is a Node.js stream andhttp.IncomingMessage
objectheader
: The result is the value of a header, as a stringheaders
: The result is a mapping from header names to their values.error
: The result is an error in an unspecified format, possibly containing information from the response- An empty string, indicating an unknown response type.
- Any value provided by custom implementations of
ClientRequest::Range
.
Node getAResponseDataNode(string responseType, boolean promise)