http-transport

Methods

(inner) delete(wpreq, dataopt, callbackopt) → {Promise}

Source:
Parameters:
Name Type Attributes Description
wpreq WPRequest

A WPRequest query object

data Object <optional>

Data to send along with the DELETE request

callback function <optional>

A callback to invoke with the results of the DELETE request

Returns:
Type:
Promise

A promise to the results of the HTTP request

(inner) get(wpreq, callbackopt) → {Promise}

Source:
Parameters:
Name Type Attributes Description
wpreq WPRequest

A WPRequest query object

callback function <optional>

A callback to invoke with the results of the GET request

Returns:
Type:
Promise

A promise to the results of the HTTP request

(inner) head(wpreq, callbackopt) → {Promise}

Source:
Parameters:
Name Type Attributes Description
wpreq WPRequest

A WPRequest query object

callback function <optional>

A callback to invoke with the results of the HEAD request

Returns:
Type:
Promise

A promise to the header results of the HTTP request

(inner) post(wpreq, data, callbackopt) → {Promise}

Invoke an HTTP "POST" request against the provided endpoint

Source:
Parameters:
Name Type Attributes Description
wpreq WPRequest

A WPRequest query object

data Object

The data for the POST request

callback function <optional>

A callback to invoke with the results of the POST request

Returns:
Type:
Promise

A promise to the results of the HTTP request

(inner) put(wpreq, data, callbackopt) → {Promise}

Source:
Parameters:
Name Type Attributes Description
wpreq WPRequest

A WPRequest query object

data Object

The data for the PUT request

callback function <optional>

A callback to invoke with the results of the PUT request

Returns:
Type:
Promise

A promise to the results of the HTTP request