Module handler

Module handler 

Source
Available on crate feature component-model-async only.
Expand description

Provides utilities useful for dispatching incoming HTTP requests wasi:http/handler guest instances.

Modules§

p2
Alternative p2 bindings generated with exports: { default: async | store } so we can use TypedFunc::call_concurrent with both p2 and p3 instances.

Structs§

ProxyHandler
Represents the state of a web server.
StoreBundle
Bundles a Store with a callback to write a profile (if configured).

Enums§

Proxy
Represents either a wasi:http/incoming-handler@0.2.x or wasi:http/handler@0.3.x instance.
ProxyPre
Represents either a wasi:http/incoming-handler@0.2.x or wasi:http/handler@0.3.x pre-instance.

Traits§

HandlerState
Represents the application-specific state of a web server.

Type Aliases§

TaskFn
Represents a task to run using a wasi:http/incoming-handler@0.2.x or wasi:http/handler@0.3.x instance.