| 1 | import * as S3 from "@distilled.cloud/aws/s3"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeTigrisS3Binding } from "./BucketBinding.ts"; |
| 4 | import { HeadObject } from "./HeadObject.ts"; |
| 5 | |
| 6 | /** |
| 7 | * HTTP implementation of {@link HeadObject}. Calls distilled S3 |
| 8 | * `headObject` against the Tigris endpoint with the bucket's credentials. |
| 9 | * |
| 10 | * @layer |
| 11 | * @product Bucket |
| 12 | * @provides Fly.HeadObject |
| 13 | */ |
| 14 | export const HeadObjectHttp = Layer.effect( |
| 15 | HeadObject, |
| 16 | makeTigrisS3Binding({ |
| 17 | tag: "Fly.HeadObject", |
| 18 | operation: S3.headObject, |
| 19 | }), |
| 20 | ); |