@ima/plugin-rest-client
Version:
Generic REST API client plugin for the IMA application framework.
20 lines (19 loc) • 861 B
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
*/ export default 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