| 287 | |
| 288 | /** @internal */ |
| 289 | export const raw = (body: unknown, options?: ServerResponse.Options | undefined): ServerResponse.HttpServerResponse => |
| 290 | new ServerResponseImpl( |
| 291 | options?.status ?? 200, |
| 292 | options?.statusText, |
| 293 | options?.headers ? Headers.fromInput(options.headers) : Headers.empty, |
| 294 | options?.cookies ?? Cookies.empty, |
| 295 | internalBody.raw(body, { |
| 296 | contentType: options?.contentType, |
| 297 | contentLength: options?.contentLength |
| 298 | }) |
| 299 | ) |
| 300 | |
| 301 | /** @internal */ |
| 302 | export const formData = ( |