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

caccl-send-request

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

caccl-send-request

The default request sender used throughout the CACCL project.

  • 1.0.13
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
335
increased by520.37%
Maintainers
1
Weekly downloads
 
Created
Source

caccl-send-request

The default request sender used throughout the CACCL project.

Part of the CACCL library

Canvas
App
Complete
Connection
Library

Overriding caccl-send-request

Throughout the caccl project, the default sendRequest function is this caccl-send-request module.

However, if you want to override the sendRequest function, just create your own function that follows the description below. Your function should follow our description exactly, including sending of cross-origin credentials.

Description

Sends an http request, handles paging, retries failed requests, and processes the response.

ArgumentTypeDescriptionDefault
hoststringhost to send the request tonone
pathstringpath to send the request tonone
methodstringhttp method to useGET
paramsobjectquery/body/data to include in the request{}
headersobjectheaders to include in the request{}
numRetriesnumbernumber of times to retry the request if it fails0
ignoreSSLIssuesbooleanif true, ignores self-signed certificate issuesfalse usually, true if host is localhost:8088

Returns:
Promise.<CACCLError|object> Returns promise that resolves with { body, status, headers } on success, rejects with CACCLError (see caccl-error on npm) on failure.

Note: This function sends cross-origin credentials if process.env.DEV is true or if process.env.NODE_ENV equals development.

Keywords

FAQs

Package last updated on 27 Aug 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