( options?: Options.WithContent | undefined )
| 120 | * @since 4.0.0 |
| 121 | */ |
| 122 | export const empty = ( |
| 123 | options?: Options.WithContent | undefined |
| 124 | ): HttpServerResponse => |
| 125 | makeResponse({ |
| 126 | status: options?.status ?? 204, |
| 127 | statusText: options?.statusText, |
| 128 | headers: options?.headers ? Headers.fromInput(options.headers) : undefined, |
| 129 | cookies: options?.cookies |
| 130 | }) |
| 131 | |
| 132 | /** |
| 133 | * Creates a redirect response with a `Location` header. |
no test coverage detected