# caccl-send-request

> The default request sender used throughout the CACCL project.

Latest version **2.6.4** (published 2026-09-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install caccl-send-request
pnpm add caccl-send-request
yarn add caccl-send-request
bun add caccl-send-request
```

## Health

**Score 60/100 (C)** — status: active.

Positive: has types; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 2.6.4 |
| Published | 2026-09-22 |
| First published | 2018-12-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 23.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Gabe Abrams |
| Maintainers | gabeabrams |
| Keywords | HTTPS, HTTP, send, request, request, CACCL |

## Links

- npm: https://www.npmjs.com/package/caccl-send-request
- Repository: https://github.com/harvard-edtech/caccl-send-request
- Homepage: https://github.com/harvard-edtech/caccl-send-request#readme
- Issues: https://github.com/harvard-edtech/caccl-send-request/issues
- npm.io page: https://npm.io/package/caccl-send-request

## Dependencies (2)

- [qs](https://npm.io/package/qs.md) ^6.9.6
- [caccl-error](https://npm.io/package/caccl-error.md) ^2.6.4

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 2.6.4 (latest) — 2026-09-22
- 2.6.0 (beta) — 2026-06-23
- 2.6.3 — 2026-09-20
- 2.6.2 — 2026-07-07
- 2.6.1 — 2026-06-30
- 2.5.3 — 2026-06-10
- 2.5.2 — 2026-05-14
- 2.5.1 — 2026-05-14
- 2.5.0-beta-new-requests — 2026-04-21
- 2.4.3 — 2026-03-17
- 2.4.2 — 2026-03-17
- 2.4.1 — 2025-12-16
- 2.4.0 — 2025-12-16
- 2.3.4 — 2025-07-02
- 2.3.3 — 2025-05-30
- … 67 more at https://npm.io/package/caccl-send-request/versions

## README

# caccl-send-request
The default request sender used throughout the CACCL project.

## Part of the CACCL library
**C**anvas  
**A**pp  
**C**omplete  
**C**onnection  
**L**ibrary  

## Description

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

Argument | Type | Description | Default
:--- | :--- | :--- | :---
host | string | host to send the request to | none
path | string | path to send the request to | none
method | string | http method to use | GET
params | object | query/body/data to include in the request | {}
headers | object | headers to include in the request | {}
numRetries | number | number of times to retry the request if it fails | 0
ignoreSSLIssues | boolean | if true, ignores self-signed certificate issues | false 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`.

---
_Source: https://npm.io/package/caccl-send-request · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
