UNPKG

astro

Version:

Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

11 lines (10 loc) 374 B
/** * Appends cookies written via `Astro.cookie.set()` to the `Set-Cookie` header * and marks the response as sent. * * This is a pure function with no dependencies on the app; it is shared by * `AstroHandler` and the various error handlers. */ export declare function prepareResponse(response: Response, { addCookieHeader }: { addCookieHeader: boolean; }): void;