Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ciscospark/http-core

Package Overview
Dependencies
Maintainers
3
Versions
177
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ciscospark/http-core

Core HTTP library for the Cisco Webex

  • 1.52.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
227
decreased by-46.59%
Maintainers
3
Weekly downloads
 
Created
Source

@ciscospark/http-core

standard-readme compliant

Core HTTP library for the Cisco Webex JS SDK.

Install

npm install --save @ciscospark/http-core

Usage

detect(), detectSync()

Detects the filetype of the specified file.

request()

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 ({json:true}, etc)

defaults()

Curried version of request() that produces an http client with overridden defaults.

HttpError

Child of Error (by way of Exception from @ciscospark/common). Has subclassed errors for each official HTTP status code (and 429 Too Man Requests).

Maintainers

This package is maintained by Cisco Webex for Developers.

Contribute

Pull requests welcome. Please see CONTRIBUTING.md for more details.

License

© 2016-2018 Cisco and/or its affiliates. All Rights Reserved.

FAQs

Package last updated on 01 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc