( body: UrlParams.Input, options?: ServerResponse.Options.WithContentType | undefined )
| 269 | |
| 270 | /** @internal */ |
| 271 | export const urlParams = ( |
| 272 | body: UrlParams.Input, |
| 273 | options?: ServerResponse.Options.WithContentType | undefined |
| 274 | ): ServerResponse.HttpServerResponse => { |
| 275 | const headers = options?.headers ? Headers.fromInput(options.headers) : Headers.empty |
| 276 | return new ServerResponseImpl( |
| 277 | options?.status ?? 200, |
| 278 | options?.statusText, |
| 279 | headers, |
| 280 | options?.cookies ?? Cookies.empty, |
| 281 | internalBody.urlParams( |
| 282 | UrlParams.fromInput(body), |
| 283 | getContentType(options, headers) |
| 284 | ) |
| 285 | ) |
| 286 | } |
| 287 | |
| 288 | /** @internal */ |
| 289 | export const raw = (body: unknown, options?: ServerResponse.Options | undefined): ServerResponse.HttpServerResponse => |
nothing calls this directly
no test coverage detected