source: frontend/node_modules/workbox-range-requests/createPartialResponse.d.ts

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 916 bytes
Line 
1import './_version.js';
2/**
3 * Given a `Request` and `Response` objects as input, this will return a
4 * promise for a new `Response`.
5 *
6 * If the original `Response` already contains partial content (i.e. it has
7 * a status of 206), then this assumes it already fulfills the `Range:`
8 * requirements, and will return it as-is.
9 *
10 * @param {Request} request A request, which should contain a Range:
11 * header.
12 * @param {Response} originalResponse A response.
13 * @return {Promise<Response>} Either a `206 Partial Content` response, with
14 * the response body set to the slice of content specified by the request's
15 * `Range:` header, or a `416 Range Not Satisfiable` response if the
16 * conditions of the `Range:` header can't be met.
17 *
18 * @memberof workbox-range-requests
19 */
20declare function createPartialResponse(request: Request, originalResponse: Response): Promise<Response>;
21export { createPartialResponse };
Note: See TracBrowser for help on using the repository browser.