@ima/plugin-rest-client
Version:
Generic REST API client plugin for the IMA application framework.
30 lines (29 loc) • 1.06 kB
JavaScript
/* eslint-disable no-unused-vars */ /**
* The response post-processor is a utility for post-processing the REST API
* response before it is returned to the caller of the REST API client's
* methods.
*
* @interface
*/ "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return ResponsePostProcessor;
}
});
class ResponsePostProcessor {
/**
* Post-processes the provided REST API response to a form in which is
* should be passed to the caller of the REST API client's methods, or the
* next post-processor in the queue.
*
* @param {import('@ima/core').Response} response The REST API response to post-process before
* returning it to the caller of the REST API client's methods.
* @returns {import('@ima/core').Response} The response as it should be passed to the caller of
* the REST API client's methods.
*/ process(response) {}
}
//# sourceMappingURL=ResponsePostProcessor.js.map