Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
fedify-dev/fedifyWorks with
•JSR Score100%•This package works with Node.js, Deno, BunIt is unknown whether this package works with Cloudflare Workers



License
•MIT
Downloads4/wk
•Publisheda week ago (2.2.0)
Integrate Fedify with h3
- @fedify/h3
default
Functions
f
integrateFederation<TContextData>(): EventHandler<EventHandlerRequest, EventHandlerResponse>
federation: Federation<TContextData>,
contextDataFactory: ContextDataFactory<TContextData>
Integrates a Federation instance with an H3 handler.
f
onError(): Promise<void>
error: H3Error<unknown>,
event: H3Event<EventHandlerResponse>
An error handler that responds with a 406 Not Acceptable if Fedify responded with a 406 Not Acceptable and the actual handler responded with a 404 Not Found.
Type Aliases
T
ContextDataFactory<TContextData> = () => Promise<TContextData> | TContextData
event: H3Event<EventHandlerRequest>,
request: Request
A factory function that creates the context data that will be passed to the
Federation instance.