- Source:
- See:
Example
var MyMiddleware = {
willSendRequest: function (request) {
// do something
},
didReceiveResponse: function (request) {
// do something
}
};
Members
-
(static) FormEncoded
-
Serializes the request body if the Content-Type header matches. Deserializes the response body if the Content-Type header matches.
- Source:
-
(static) SerializeJSON
-
Serializes the request body if the Content-Type header matches. Deserializes the response body if the Content-Type header matches.
- Source:
-
(static) WithCredentials
-
Sets `withCredentials = true` on the XMLHttpRequest object
- Source:
Methods
-
(static) BasicAuth(user, password)
-
Returns middleware for setting `Authorize` header
Parameters:
Name Type Description userString passwordString - Source: