1.10.4 • Published 9 months ago
@iamnnort/request v1.10.4
Info
Request handler for Node.js - Fast - Interactive - Simple
Installation
yarn install @iamnnort/request
Usage
import { RequestDataSource, HttpMethods } from '@iamnnort/request';
const dataSource = new RequestDataSource({
baseUrl: '...',
url: '/users'
});
const users = await dataSource.search();
const user = await dataSource.get();
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.10.4
9 months ago
1.10.3
9 months ago
1.10.2
9 months ago
1.9.2
9 months ago
1.9.1
9 months ago
1.9.0
9 months ago
1.10.1
9 months ago
1.10.0
9 months ago
1.8.11
10 months ago
1.8.9
11 months ago
1.8.10
11 months ago
1.8.8
11 months ago
1.8.7
11 months ago
1.8.5
1 year ago
1.8.4
1 year ago
1.8.2
1 year ago
1.8.1
1 year ago
1.8.0
1 year ago
1.8.3
1 year ago
1.7.1
2 years ago
1.7.0
2 years ago
1.6.8
2 years ago
1.6.7
2 years ago
1.6.6
2 years ago
1.6.5
2 years ago
1.6.4
2 years ago
1.6.3
2 years ago
1.6.2
2 years ago
1.6.1
2 years ago
1.6.0
2 years ago
1.5.7
2 years ago
1.5.6
2 years ago
1.5.5
2 years ago
1.5.4
2 years ago
1.5.3
2 years ago
1.5.2
2 years ago
1.5.1
2 years ago
1.5.0
2 years ago
1.4.6
2 years ago
1.4.5
2 years ago
1.4.4
2 years ago
1.4.2
2 years ago
1.4.1
2 years ago
1.4.0
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago