1.0.7-alpha • Published 28 days ago
reqless v1.0.7-alpha
reqless
A Node.js HTTP client written in C++, with focus on performance, reliability and safety.
Installation
Using npm:
https://www.npmjs.com/package/reqless
$ npm install reqless
Usage
const reqless = require("reqless")
const response = reqless({
url: "http://info.cern.ch/",
method: "GET"
})
console.log(response.body, response.headers);
Response
The main reqless function returns a response
object.
A response object has the following attributes:
- body: The body received from the HTTP request (string).
- headers: The headers received from the HTTP request (object).
Request
Inside the request object you can provide the following attributes:
- url: The url which will be requested (string).
- method: The method in which the url will be requested, default - GET (string).
- data: POST data for the request (string).
1.0.7
28 days ago
1.0.7-1
28 days ago
1.0.7-alpha
28 days ago
1.0.6-beta
3 years ago
1.0.5-beta
3 years ago
1.0.4-beta
3 years ago
1.0.3-beta
3 years ago
1.0.2-beta
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago