aurelia / http-client

A simple, restful, message-based wrapper around XMLHttpRequest.
MIT License
62 stars 59 forks source link

doc(interceptors): fix error handler typings #140

Closed vuorinem closed 8 years ago

vuorinem commented 8 years ago

Both resolve and reject in XHR request processing are called with HttpResponseMessage.

In requestError, parameter type is anything that previous interceptor throws, but response must be RequestMessage to allow continue processing (unless another error is thrown).

EisenbergEffect commented 8 years ago

Thanks!