@yoda/httpsession

A wapper of httpsession.

Methods

(inner) request(url, options, timeoutopt, callbackopt)

Send a http request.

Parameters:
Name Type Attributes Description
url string
options object
Name Type Attributes Description
method string <optional>
body string <optional>
timeout number <optional>
options.headers object <optional>
callback function <optional>

(inner) abort()

Close uv_async_t in httpsession, none of callbacks will be invoked after this.