Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/floatdrop/httpinkie
HTTP as a Promise
https://github.com/floatdrop/httpinkie
Last synced: about 1 month ago
JSON representation
HTTP as a Promise
- Host: GitHub
- URL: https://github.com/floatdrop/httpinkie
- Owner: floatdrop
- License: mit
- Created: 2015-07-01T13:01:59.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-01T13:05:34.000Z (over 9 years ago)
- Last Synced: 2024-10-28T00:06:02.262Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 113 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# httpinkie [![Build Status](https://travis-ci.org/floatdrop/httpinkie.svg?branch=master)](https://travis-ci.org/floatdrop/httpinkie)
> HTTP as a Promise
## Install
```
$ npm install --save httpinkie
```## Usage
```js
var http = require('httpinkie');http.request({host: 'google.com'})
.then(console.log);
```## HTTP
### request(req)
#### req
*Required*
Type: `Object`HTTP request object with additional fields:
- `timeout`
- `body`## License
MIT © [Vsevolod Strukchinsky](http://github.com/floatdrop)