import { type Middleware } from "https://deno.land/x/windmill@v1.38.3/windmill-api/index.ts";
Defines the contract for a middleware intercepting requests before they are sent (but after the RequestContext was created) and before the ResponseContext is unwrapped.
Methods
pre(context: RequestContext): Promise<RequestContext>
Modifies the request before the request is sent.
post(context: ResponseContext): Promise<ResponseContext>
Modifies the returned response before it is deserialized.