Socket
Socket
Sign inDemoInstall

caccl-send-request

Package Overview
Dependencies
Maintainers
1
Versions
54
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.


Version published
Maintainers
1
Created
Source

caccl-send-request

The default request sender used throughout the CACCL project.

Part of the CACCL library

Canvas
App
Complete
Connection
Library

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.NODE_ENV equals development.

Keywords

FAQs

Package last updated on 25 Jul 2024

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