Simple class-based HTTP client with Promises
Start Working:
const API = 'http://doge.in/wow/';API;
Defining custom promise prototype;
const API = 'http://doge.in/wow/' myPromisePrototype
Working with AngularJS
angular
Request Middleware
const myMiddleWare = { if responsestatus === 401 windowlocationpath = '/login'; ; else ; }; API
Method Support
Supports
- GET
.get(ResourcePath, GET-params)
- POST
.post(ResourcePath, body)
- PUT
.put(ResourcePath, body)
- PATCH
.patch(ResourcePath, body)
- DELETE
.del(ResourcePath)