An interface that allows you to abort in-flight
Fetch requests.
An interface representing a signal that can be passed to cancellable operations, primarily a
Fetch request.
An instance of the R2 bucket binding.
Provides access to the
Cache API.
Because
match is a reserved keyword in Rust, the
match method has been renamed to
get.
In addition to the methods on the Request struct, the Cf struct on an inbound Request contains information about the request provided by Cloudflare’s edge.
Wrapper/Utility struct for the web_sys::CloseEvent
You can pass an
Conditional object to
GetOptionsBuilder. If the condition check fails,
the body will not be returned. This will make
get have lower latency.
A context bound to a fetch event.
Cors struct, holding cors configuration
The equivalent to a JavaScript Date Object.
A
Future for asynchronously waiting.
A binding for dispatching events to Workers inside of a dispatch namespace by their name. This
allows for your worker to directly invoke many workers by name instead of having multiple
service worker bindings.
Env contains any bindings you have associated with the Worker when you uploaded it.
A
Stream that yields
WebsocketEvents
emitted by the inner
WebSocket. The stream is guaranteed to always yield a
WebsocketEvent::Close as the final non-none item.
A struct for invoking fetch events to other Workers.
A
File representation used with
FormData.
A
FormData representation of the
request body, providing access to form encoded fields and files.
Options for configuring the
get operation.
A
Headers representation used in
Request and Response objects.
Metadata that’s automatically rendered into R2 HTTP API endpoints.
Options for configuring the
list operation.
Wrapper/Utility struct for the web_sys::MessageEvent
Object is created when you
put an object into a
Bucket.
Object represents
the metadata of an object based on the information provided by the uploader. Every object that
you
put into a
Bucket will have an
Object created.
The data contained within an
Object.
Options for configuring the
put operation.
A
Request representation for
handling incoming and creating outbound HTTP requests.
Optional options struct that contains settings to apply to the Request.
A
Response representation for
working with or returning a response to a
Request.
Container for a route’s parsed parameters, data, and environment bindings from the Runtime (such
as KV Stores, Durable Objects, Variables, and Secrets).
Represents the URL parameters parsed from the path, e.g. a route with “/user/:id” pattern would
contain a single “id” key.
A path-based HTTP router supporting exact-match or wildcard placeholders and shared data.
Represents an outbound TCP connection from your Worker.
The host and port that you wish to connect to.
Used to configure outbound TCP connections.
Only set when using Cloudflare Access or API Shield
A parsed URL record.
Wrapper struct for underlying worker-sys WebSocket
Struct holding the values for a JavaScript WebSocketPair