Core HTTP library for the Cisco Webex JS SDK.
npm install --save @ciscospark/http-core
Detects the filetype of the specified file.
Same api as request with the following changes:
- Promise-based instead of nodeback based
- Adds an interceptors property to the options object for adding classes that intercept and modify each request
- 4XX and 5XX responses get rejected with the appropriate subclassed Error type
- Sensible defaults for our API (
Curried version of
request() that produces an http client with overridden defaults.
Error (by way of
@ciscospark/common). Has subclassed errors for each official HTTP status code (and 429 Too Man Requests).
This package is maintained by Cisco Webex for Developers.
Pull requests welcome. Please see CONTRIBUTING.md for more details.
© 2016-2018 Cisco and/or its affiliates. All Rights Reserved.