1.7.1 • Published 6 months ago
@iamnnort/request v1.7.1
Info
Request handler for Node.js - Fast - Interactive - Simple
Installation
yarn install @iamnnort/request
Usage
import { request, HttpMethods } from "@iamnnort/request";
const req = request({
baseUrl: "...",
});
const data = await req({
method: HttpMethods.GET,
url: "...",
});
Parameters
Parameter | Description |
---|---|
baseUrl | Main part of the server URL that will be used for the request |
url | Server URL that will be used for the request |
urlParts | Additional parts of URL that will be used for the request |
method | Request method to be used when making the request |
params | URL parameters to be sent with the request |
data | Data to be sent as the request body |
headers | Custom headers to be sent |
serializer | Config that allows you to customize serializing |
serializer.array | Array element separator ("indices" , "brackets" , "repeat" , "comma" ) |
logger | Enable a logger |
debug | Enable a debug mode |
License
This project is licensed under the MIT license. See the LICENSE file for more info.
1.7.1
6 months ago
1.7.0
6 months ago
1.6.8
6 months ago
1.6.7
7 months ago
1.6.6
7 months ago
1.6.5
7 months ago
1.6.4
7 months ago
1.6.3
7 months ago
1.6.2
7 months ago
1.6.1
7 months ago
1.6.0
7 months ago
1.5.7
7 months ago
1.5.6
7 months ago
1.5.5
7 months ago
1.5.4
7 months ago
1.5.3
7 months ago
1.5.2
7 months ago
1.5.1
7 months ago
1.5.0
7 months ago
1.4.6
7 months ago
1.4.5
7 months ago
1.4.4
7 months ago
1.4.2
7 months ago
1.4.1
8 months ago
1.4.0
8 months ago
1.1.3
8 months ago
1.1.2
8 months ago
1.1.1
8 months ago
1.1.0
8 months ago
1.0.4
8 months ago
1.0.3
8 months ago
1.0.2
8 months ago
1.0.1
8 months ago
1.0.0
8 months ago