A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Microsoft/typed-rest-client below:

microsoft/typed-rest-client: Node Rest and Http Clients with typings for use with TypeScript

Typed REST and HTTP Client with TypeScript Typings

A lightweight REST and HTTP client optimized for use with TypeScript with generics and async await.

Intellisense and compile support:

npm install typed-rest-client --save

Or to install the latest preview:

npm install typed-rest-client@preview --save

See the samples for complete coding examples. Also see the REST and HTTP tests for detailed examples.

The HTTP client does not throw unless truly exceptional.

See HTTP tests for detailed examples.

The REST client is a high-level client which uses the HTTP client. Its responsibility is to turn a body into a typed resource object.

See REST tests for detailed examples.

To enable detailed console logging of all HTTP requests and responses, set the NODE_DEBUG environment varible:

or

v2 - [current, maintained] - Supports node 16 and above v1 - End Of Life, for Node < 16, contains security vulnerabilities, use at your own risk

To contribute to this repository, see the contribution guide

To build:

To run all tests:

To just run unit tests:

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Do you think there might be a security issue? Have you been phished or identified a security vulnerability? Please don't report it here - let us know by sending an email to secure@microsoft.com.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4