| 1 | // Alchemy modifications are licensed under Apache-2.0. |
| 2 | // This file includes third-party code; see /THIRD_PARTY_LICENSES.md. |
| 3 | export declare class OkResponse extends Response { |
| 4 | static readonly status = 200; |
| 5 | constructor(body: BodyInit | null, init?: ResponseInit); |
| 6 | } |
| 7 | export declare class NotFoundResponse extends Response { |
| 8 | static readonly status = 404; |
| 9 | constructor(...[body, init]: ConstructorParameters<typeof Response>); |
| 10 | } |
| 11 | export declare class NoIntentResponse extends NotFoundResponse { |
| 12 | constructor(); |
| 13 | } |
| 14 | export declare class MethodNotAllowedResponse extends Response { |
| 15 | static readonly status = 405; |
| 16 | constructor(...[body, init]: ConstructorParameters<typeof Response>); |
| 17 | } |
| 18 | export declare class InternalServerErrorResponse extends Response { |
| 19 | static readonly status = 500; |
| 20 | constructor(_: Error, init?: ResponseInit); |
| 21 | } |
| 22 | export declare class NotModifiedResponse extends Response { |
| 23 | static readonly status = 304; |
| 24 | constructor(...[_body, init]: ConstructorParameters<typeof Response>); |
| 25 | } |
| 26 | export declare class MovedPermanentlyResponse extends Response { |
| 27 | static readonly status = 301; |
| 28 | constructor(location: string, init?: ResponseInit); |
| 29 | } |
| 30 | export declare class FoundResponse extends Response { |
| 31 | static readonly status = 302; |
| 32 | constructor(location: string, init?: ResponseInit); |
| 33 | } |
| 34 | export declare class SeeOtherResponse extends Response { |
| 35 | static readonly status = 303; |
| 36 | constructor(location: string, init?: ResponseInit); |
| 37 | } |
| 38 | export declare class TemporaryRedirectResponse extends Response { |
| 39 | static readonly status = 307; |
| 40 | constructor(location: string, init?: ResponseInit); |
| 41 | } |
| 42 | export declare class PermanentRedirectResponse extends Response { |
| 43 | static readonly status = 308; |
| 44 | constructor(location: string, init?: ResponseInit); |
| 45 | } |
| 46 | //# sourceMappingURL=responses.d.ts.map |