Class: ClientRequestData

whatwg-xhr~ClientRequestData()

new ClientRequestData()

Emulates the node http.ClientRequest for processing data url's.
Source:

Methods

constructor(response) → {object}

Constructs a new ClientRequestData object.
Parameters:
Name Type Description
response object Emulates the http.IncomingMessage object.
Source:
Returns:
ClientRequestData object.
Type
object

destroy() → {object}

Emulates the node http.ClientRequest destroy() method.
Source:
Returns:
ClientRequestData object.
Type
object

end(callback) → {object}

Emulates the node http.ClientRequest end() method.
Parameters:
Name Type Description
callback function Callback function to invoke.
Source:
Returns:
ClientRequestData object.
Type
object

on(type, callback) → {object}

Emulates the node http.ClientRequest on() method.
Parameters:
Name Type Description
type string The event to invoke.
callback function Callback function to invoke.
Source:
Returns:
ClientRequestData object.
Type
object

A Node.js implementation of the WHATWG XMLHttpRequest Living Standard for non-browser environments.