| 1 | import * as Layer from "effect/Layer"; |
| 2 | import { ReadObject } from "./ReadObject.ts"; |
| 3 | import { storageHttpLayer } from "./StorageBinding.ts"; |
| 4 | import { makeReadObjectHttp } from "./StorageObjectBinding.ts"; |
| 5 | |
| 6 | /** |
| 7 | * Typed object reads using injected or automatically scoped credentials. |
| 8 | * |
| 9 | * @layer |
| 10 | * @product Bucket |
| 11 | * @provides ReadObject |
| 12 | */ |
| 13 | export const ReadObjectHttp = Layer.effect( |
| 14 | ReadObject, |
| 15 | makeReadObjectHttp(), |
| 16 | ).pipe(Layer.provide(storageHttpLayer)); |