1.7.1 • Published 6 months ago

@iamnnort/request v1.7.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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

ParameterDescription
baseUrlMain part of the server URL that will be used for the request
urlServer URL that will be used for the request
urlPartsAdditional parts of URL that will be used for the request
methodRequest method to be used when making the request
paramsURL parameters to be sent with the request
dataData to be sent as the request body
headersCustom headers to be sent
serializerConfig that allows you to customize serializing
serializer.arrayArray element separator ("indices", "brackets", "repeat", "comma")
loggerEnable a logger
debugEnable 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