Struct worker::RouteContext [−][src]
pub struct RouteContext<D> { /* fields omitted */ }
Expand description
Container for a route’s parsed parameters, data, and environment bindings from the Runtime (such as KV Stores, Durable Objects, Variables, and Secrets).
Implementations
Get the Env
for this Worker. Typically users should opt for the secret
, var
, kv
and
durable_object
methods on the RouteContext
instead.
Get a Secret value associated with this Worker, should one exist.
Get an Environment Variable value associated with this Worker, should one exist.
Get a KV Namespace associated with this Worker, should one exist.
Get a Durable Object Namespace associated with this Worker, should one exist.