package awskit-lwt

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

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

doc/index.html

awskit-lwt

Generic Lwt runtime adapter for Awskit.

The public entrypoint is Awskit_lwt. This package provides the Lwt runtime contract over a caller-supplied Cohttp_lwt.S.Client. It is intended for applications or libraries that need to choose their own Lwt HTTP backend.

Use the awskit-lwt-unix package instead when a ready Unix-backed runtime is enough.

Runtime Shape

Use Awskit_lwt.Make when the application owns the Cohttp client module, context, TLS setup, and credential source. Client creation requires an explicit region, credentials, and clock.

When retries are enabled, custom Lwt runtimes must provide real sleep and random_float capabilities. Deterministic runtimes without those capabilities should pass Awskit.Retry.disabled. Timeout policies with configured spans also need sleep, because the generic adapter uses it as the timeout clock.

This package does not read environment variables, profile files, or metadata services by itself. Those Unix provider defaults are in awskit-lwt-unix.