WebApp interface
Minimal application surface needed by configureResponseController to
register the SDK-specific Activity callback POST route. Express's Application
structurally satisfies this. Framework integrations that do not satisfy it
should wrap createAgentResponseHandler; Fastify users should use
configureResponseController from @microsoft/agents-hosting-fastify.
WebApp is a minimal structural shape rather than a richer, named
route-registrar contract. It is exported so it has a stable name in the
generated type declarations and API report (it appears in the exported
configureResponseController signature). Any framework app whose
post(path, handler) method structurally matches satisfies it.
Methods
| post(string, (req: any, res: any) => unknown) | Registers a handler for HTTP POST requests at the specified path. |
Method Details
post(string, (req: any, res: any) => unknown)
Registers a handler for HTTP POST requests at the specified path.
function post(path: string, handler: (req: any, res: any) => unknown): unknown
Parameters
- path
-
string
Route path to register.
- handler
-
(req: any, res: any) => unknown
Request handler invoked for matching requests.
Returns
unknown
A framework-specific registration result.