typed-rest-client
Advanced tools
Comparing version 0.13.0 to 0.14.0
{ | ||
"name": "typed-rest-client", | ||
"version": "0.13.0", | ||
"version": "0.14.0", | ||
"description": "Node Rest and Http Clients for use with TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "./RestClient.js", |
@@ -11,27 +11,12 @@ # Typed Rest and Http Client with TypeScript Typings | ||
- Rest Client with typescript generics and async/await/Promises | ||
- Http Client with pipe stream support and async/await/Promises | ||
```javascript | ||
import * as rm from 'typed-rest-client/RestClient'; | ||
let restc: rm.RestClient = new rm.RestClient('rest-samples', | ||
'https://mystudentapiserver'); | ||
let res: rm.IRestResponse<Student> = await restc.get<Student>('/students/5'); | ||
console.log(res.statusCode); | ||
console.log(res.result.name); | ||
``` | ||
- Rest and Http Client with typescript generics and async/await/Promises | ||
- Typings included so no need to acquire separately (great for intellisense and no versioning drift) | ||
![intellisense](./docs/intellisense.png) | ||
- Basic, Bearer and NTLM Support out of the box | ||
- Proxy support | ||
- Certificate support (Self-signed server and client cert) | ||
- Layered for Rest or Http use | ||
- Full Samples and Tests included for usage | ||
- Redirects supported | ||
Intellisense and compile support from typing the REST calls: | ||
![intellisense](./docs/intellisense.png) | ||
## Install the library | ||
@@ -38,0 +23,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60675
25
1258
37
4