A simple set of wrappers for RESTful calls
Перейти к файлу
David de Regt ef5c8d3341
Merge pull request #17 from Microsoft/markda/ResponseHasRequest
0.1.3: Expose request bits from WebResponse...
2017-11-16 19:26:27 -08:00
src 0.1.3: Expose request bits from WebResponse. The exact headers are not known until the request is sent, so the caller does not have them (except in simple cases). Also, the request options are useful to return in case the 'caller' is a helper function that creates the request and thus the original caller does not necessarily have that information. 2017-11-16 17:56:02 -08:00
.gitignore Misc cleanup 2016-11-02 15:57:33 -07:00
.npmignore Initial commit: Extracting out GenericRestClient, SimpleWebRequest, and ExponentialTime into a new SimpleRestClients reusable NPM module. 2016-11-02 15:52:44 -07:00
.npmrc Cleaned up SRC for strict null checks, newer Typescript/Tslint, and other compile flags. 2017-10-25 16:13:30 -07:00
LICENSE Initial commit: Extracting out GenericRestClient, SimpleWebRequest, and ExponentialTime into a new SimpleRestClients reusable NPM module. 2016-11-02 15:52:44 -07:00
README.md Initial commit: Extracting out GenericRestClient, SimpleWebRequest, and ExponentialTime into a new SimpleRestClients reusable NPM module. 2016-11-02 15:52:44 -07:00
index.js Misc cleanup 2016-11-02 15:57:33 -07:00
package.json 0.1.3: Expose request bits from WebResponse. The exact headers are not known until the request is sent, so the caller does not have them (except in simple cases). Also, the request options are useful to return in case the 'caller' is a helper function that creates the request and thus the original caller does not necessarily have that information. 2017-11-16 17:56:02 -08:00
tsconfig.json Cleaned up SRC for strict null checks, newer Typescript/Tslint, and other compile flags. 2017-10-25 16:13:30 -07:00
tslint.json Moving from lodash lib dependency to it's subset (#3) 2017-05-17 14:46:28 -07:00

README.md

SimpleRestClients

A simple set of wrappers for RESTful calls. Consists of two modules:

SimpleWebRequest

Wraps a single web request. Has lots of overrides for priorization, delays, retry logic, error handling, etc.

GenericRestClient

Wraps SimpleWebRequest for usage across a single RESTful service. In our codebase, we have several specific RESTful service interaction classes that each implement GenericRestClient so that all of the requests get the same error handling, authentication, header-setting, etc.