createAzureHandler

View as MarkdownOpen in Claude

Static method that creates an Azure Functions-compatible handler from a Hono app. The returned function accepts an Azure context and request object.

Parameters

app
{ fetch: (req: Request) => Promise<Response> }Required

A Hono-compatible application with a fetch method.

Returns

(context: any, req: any) => Promise<void> — An Azure Functions handler.

Example

1import { ServerlessAdapter } from '@signalwire/sdk';
2
3// Export as Azure Function
4export const handler = ServerlessAdapter.createAzureHandler(app);