Expand description
Cloudflare Workers runtime adapters for the multistore S3 proxy gateway.
This crate provides reusable runtime primitives for running a multistore proxy on Cloudflare Workers:
FetchConnector—object_store::client::HttpConnectorusing the Fetch APIJsBody— zero-copy body wrapper aroundweb_sys::ReadableStreamWorkerBackend—ProxyBackendimplementation using the Fetch APIWorkerSubscriber—tracing::Subscriberrouting toconsole.logNoopCredentialRegistry— anonymous-only credential registryresponse— helpers for buildingweb_sys::Responsefrom proxy resultsadd_cors_headers— set permissive CORS headers on aHeaderMap
Re-exports§
pub use backend::WorkerBackend;pub use body::collect_js_body;pub use body::JsBody;pub use cors::add_cors_headers;pub use headers::WsHeaders;pub use noop_creds::NoopCredentialRegistry;pub use request::RequestParts;pub use response::headermap_from_js;pub use response::GatewayResponseExt;pub use tracing_layer::WorkerSubscriber;
Modules§
- backend
- Backend client for the Cloudflare Workers runtime.
- body
- Zero-copy body wrapper for Cloudflare Workers.
- cors
- CORS header utilities for browser-accessible S3 proxies.
- headers
- Newtype wrapper for
web_sys::Headersenabling ergonomic conversions withhttp::HeaderMap. - noop_
creds - No-op credential registry for anonymous-only access.
- request
- Request parsing helpers for Cloudflare Workers.
- response
- Response builder helpers for Cloudflare Workers.
- tracing_
layer - A lightweight
tracinglayer that routes log output to the Workersconsole.log/console.error/console.warnAPIs.