UNPKG

fets

Version:

TypeScript HTTP Framework focusing on e2e type-safety, easy setup, performance & great developer experience

17 lines (16 loc) 920 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Response = void 0; const fetch_1 = require("@whatwg-node/fetch"); // This allows us to hook into serialization of the response body /** * The Response interface of the Fetch API represents the response to a request. * It contains the status of the response, as well as the response headers, and * an optional response body. * * @param body An object defining a body for the response. This can be null (which is the default value), or a Blob, BufferSource, FormData, Node.js Readable stream, URLSearchParams, or USVString object. The USVString is handled as UTF-8. * @param options An options object containing any custom settings that you want to apply to the response, or an empty object (which is the default value). * * @see https://developer.mozilla.org/en-US/docs/Web/API/Response */ exports.Response = fetch_1.Response;