Skip to main content

Crate multistore_cf_workers

Crate multistore_cf_workers 

Source
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:

  • FetchConnectorobject_store::client::HttpConnector using the Fetch API
  • JsBody — zero-copy body wrapper around web_sys::ReadableStream
  • WorkerBackendProxyBackend implementation using the Fetch API
  • WorkerSubscribertracing::Subscriber routing to console.log
  • NoopCredentialRegistry — anonymous-only credential registry
  • response — helpers for building web_sys::Response from proxy results
  • add_cors_headers — set permissive CORS headers on a HeaderMap

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::Headers enabling ergonomic conversions with http::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 tracing layer that routes log output to the Workers console.log / console.error / console.warn APIs.