package awskit-s3-lwt

  1. Overview
  2. Docs
On This Page
  1. Runtime Shape
Lwt adapter for Awskit S3

Install

dune-project
 Dependency

Authors

Maintainers

Sources

awskit-v0.2.0.tbz
sha256=b69c81378d08f443a276b947d9a2b45913495cb61b2ff3aa0ad74d6b071f32f8
sha512=50714b8eda6ea6e589eb34a305afdfa4870a5e8e4240c091ff5cecd309c21fdfda6163fb6449caad5cdaf800857369df5da0534d822cf152ac76fc16fb9216e5

doc/index.html

awskit-s3-lwt

Generic Lwt adapter for Awskit S3.

The public entrypoint is Awskit_s3_lwt. This package connects the runtime-neutral Awskit_s3 operation surface to a caller-supplied Awskit Lwt runtime.

Use it when an application needs a custom Lwt HTTP backend. Use the awskit-s3-lwt-unix package when the ready Lwt + Unix S3 client is enough.

Runtime Shape

Use Awskit_s3_lwt.Make with a Cohttp_lwt.S.Client implementation when the application owns the Lwt HTTP backend, context, credentials, region, clock, retry sleep, and timeout policy.

This package exposes the S3 operation modules, in-memory body helpers, and Body.of_lwt_stream for custom streaming uploads. It intentionally does not own Unix local-path helpers or managed file transfer helpers; those live in awskit-s3-lwt-unix.

Custom stream bodies must declare the exact content_length. Mark them replayable only when retrying can recreate the same bytes from the beginning. Response readers are scoped to the Object.get consumer callback.