( options?: Options.WithContent | undefined )
| 134 | * @since 4.0.0 |
| 135 | */ |
| 136 | export const empty = ( |
| 137 | options?: Options.WithContent | undefined |
| 138 | ): HttpServerResponse => |
| 139 | makeResponse({ |
| 140 | status: options?.status ?? 204, |
| 141 | statusText: options?.statusText, |
| 142 | headers: options?.headers ? Headers.fromInput(options.headers) : undefined, |
| 143 | cookies: options?.cookies |
| 144 | }) |
| 145 | |
| 146 | /** |
| 147 | * Creates a redirect response with a `Location` header. |
no test coverage detected