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