response overview
Response module: exports utilites to work with Response objects.
Added in v4.0.1
Table of contents
helpers
cloneResponse
Clones a Response object with the provided content as body.
Warning: if the content is a plain object and stringifying it fails, the cloned Response’s body will be set to null (the default value).
Signature
export declare const cloneResponse: <A>(from: Response, content: A) => Response
Added in v4.0.1