# gracenode-request

> request module for gracenode framework

Latest version **0.1.2** (published 2014-05-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install gracenode-request
pnpm add gracenode-request
yarn add gracenode-request
bun add gracenode-request
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2014-05-26 |
| First published | 2014-05-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Nobuyori Takahashi |
| Maintainers | voltrue2 |
| Keywords | gracenode, framework, request, modules |

## Links

- npm: https://www.npmjs.com/package/gracenode-request
- Repository: https://github.com/voltrue2/gracenode-request
- Issues: https://github.com/voltrue2/gracenode-request/issues
- npm.io page: https://npm.io/package/gracenode-request

## Dependencies (1)

- [request](https://npm.io/package/request.md) 2.33.0

## Alternatives

- [@sveltejs/kit](https://npm.io/package/@sveltejs/kit.md) — 2.2M weekly downloads
- [@atlaskit/theme](https://npm.io/package/@atlaskit/theme.md) — 402.0K weekly downloads
- [@tangle-network/brand](https://npm.io/package/@tangle-network/brand.md) — 10.0K weekly downloads
- [seneca](https://npm.io/package/seneca.md) — 7.4K weekly downloads
- [@bsb/base](https://npm.io/package/@bsb/base.md) — 7.2K weekly downloads

## Recent versions

- 0.1.2 (latest) — 2014-05-26
- 0.1.1 — 2014-05-23
- 0.1.0 — 2014-05-22

## README

# Request Module
***

Access
<pre>
gracenode.request
</pre>

Configurations
N/A

### .GET(url [string], requestParams [object], options [object*], callback [function])

Sends a GET request

#### Options
```
{
	// send extra headers
	headers: <object>,
	// set specific encoding
	encoding: <string>,
	// unzip the response body
	gzip: <boolean>
}
```

Example:

```javascript
gracenode.request.GET('http://xxxx.com/aaa/bbb', { test: 1 }, null, function (error, body, status) {
	// do something
});
```

### .POST(url [string], requestParams [object], options [object*], callback [function])

Sends a POST request

#### Options
```
{
	// send extra headers
	headers: <object>,
	// set specific encoding
	encoding: <string>,
	// unzip the response body
	gzip: <boolean>
}
```

Example:

```javascript
gracenode.request.POST('http://xxxx.com/aaa/bbb', { test: 1 }, null, function (error, body, status) {
	// do something
});
```

### .PUT(url [string], requestParams [object], options [object*], callback [function])

Sends a PUT request

#### Options
```
{
	// send extra headers
	headers: <object>,
	// set specific encoding
	encoding: <string>,
	// unzip the response body
	gzip: <boolean>
}
```

Example:

```javascript
gracenode.request.PUT('http://xxxx.com/aaa/bbb', { test: 1 }, null, function (error, body, status) {
	// do something
});
```

### .DELETE(url [string], requestParams [object], options [object*], callback [function])

Sends a DELETE request

#### Options
```
{
	// send extra headers
	headers: <object>,
	// set specific encoding
	encoding: <string>,
	// unzip the response body
	gzip: <boolean>
}
```

Example:

```javascript
gracenode.request.DELETE('http://xxxx.com/aaa/bbb', { test: 1 }, null, function (error, body, status) {
	// do something
});
```

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