( body: unknown, options?: ServerResponse.Options.WithContentType | undefined )
| 210 | |
| 211 | /** @internal */ |
| 212 | export const unsafeJson = ( |
| 213 | body: unknown, |
| 214 | options?: ServerResponse.Options.WithContentType | undefined |
| 215 | ): ServerResponse.HttpServerResponse => { |
| 216 | const headers = options?.headers ? Headers.fromInput(options.headers) : Headers.empty |
| 217 | return new ServerResponseImpl( |
| 218 | options?.status ?? 200, |
| 219 | options?.statusText, |
| 220 | headers, |
| 221 | options?.cookies ?? Cookies.empty, |
| 222 | internalBody.unsafeJson(body, getContentType(options, headers)) |
| 223 | ) |
| 224 | } |
| 225 | |
| 226 | /** @internal */ |
| 227 | export const schemaJson = <A, I, R>( |
nothing calls this directly
no test coverage detected
searching dependent graphs…