( schema: Schema.Codec<A, I, RD, RE>, options?: ParseOptions | undefined )
| 191 | * @since 4.0.0 |
| 192 | */ |
| 193 | export const schemaNoBody = < |
| 194 | A, |
| 195 | I extends { |
| 196 | readonly status?: number | undefined |
| 197 | readonly headers?: Readonly<Record<string, string>> | undefined |
| 198 | }, |
| 199 | RD, |
| 200 | RE |
| 201 | >( |
| 202 | schema: Schema.Codec<A, I, RD, RE>, |
| 203 | options?: ParseOptions | undefined |
| 204 | ) => { |
| 205 | const decode = Schema.decodeEffect(schema, options) |
| 206 | return (self: HttpClientResponse): Effect.Effect<A, Schema.SchemaError, RD> => |
| 207 | decode({ |
| 208 | status: self.status, |
| 209 | headers: self.headers |
| 210 | } as any as I) |
| 211 | } |
| 212 | |
| 213 | /** |
| 214 | * Converts an effect producing an `HttpClientResponse` into a stream of response body bytes. |
nothing calls this directly
no test coverage detected