Function
unsafeJson
(body: unknown, contentType?: string)
Source from the content-addressed store, hash-verified
| 115 | |
| 116 | /** @internal */ |
| 117 | export const unsafeJson = (body: unknown, contentType?: string): Body.Uint8Array => |
| 118 | text(JSON.stringify(body), contentType ?? "application/json") |
| 119 | |
| 120 | /** @internal */ |
| 121 | export const json = (body: unknown, contentType?: string): Effect.Effect<Body.Uint8Array, Body.HttpBodyError> => |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…