@loaders.gl/core
Version:
The core API for working with loaders.gl loaders and writers
18 lines • 599 B
TypeScript
/**
* Returns a Response object
* Adds content-length header when possible
*
* @param resource
*/
export declare function makeResponse(resource: unknown): Promise<Response>;
/**
* Checks response status (async) and throws a helpful error message if status is not OK.
* @param response
*/
export declare function checkResponse(response: Response): Promise<void>;
/**
* Checks response status (sync) and throws a helpful error message if status is not OK.
* @param response
*/
export declare function checkResponseSync(response: Response): void;
//# sourceMappingURL=response-utils.d.ts.map