# http-message

> Simple library to create HTTP Messages

Latest version **0.0.8** (published 2015-05-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install http-message
pnpm add http-message
yarn add http-message
bun add http-message
```

## 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.0.8 |
| Published | 2015-05-05 |
| First published | 2015-03-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Àlex Fiestas |
| Maintainers | afiestas |
| Keywords | HTTP, Message, create, assembler, make, request |

## Links

- npm: https://www.npmjs.com/package/http-message
- Repository: https://github.com/afiestas/node-http-message
- Issues: https://github.com/afiestas/node-http-message/issues
- npm.io page: https://npm.io/package/http-message

## 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

- 0.0.8 (latest) — 2015-05-05
- 0.0.7 — 2015-03-30
- 0.0.6 — 2015-03-15
- 0.0.5 — 2015-03-15
- 0.0.4 — 2015-03-15
- 0.0.3 — 2015-03-15
- 0.0.2 — 2015-03-15

## README

[![Build Status](https://travis-ci.org/afiestas/node-http-message.svg?branch=master)](https://travis-ci.org/afiestas/node-http-message)
# node-http-message
Small library to create HTTP Messages.

## What is supported
At this moment only http 1.0 is supported.
We do *not* do any sanity checks on the values passed to HTTPMessage, so it might happen that you end up with
GET request containing a body, or headers with the same name (Javascript is case sensitive while HTTP is not).

##Syntax
```javascript
var HTTPMessage = require('http-message');
var msg = new HTTPMessage();
msg.setRequest("POST", "/some/path");
msg.setHeaders({"Connection": "Close", "Accept": "*/*"});
msg.setBody("MyBody");
var httpMessage = msg.render();
```

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