Skip to main content
Module

x/windmill/windmill-api/middleware.ts>PromiseMiddleware

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Go to Latest
interface PromiseMiddleware
import { type PromiseMiddleware } from "https://deno.land/x/windmill@v1.28.1/windmill-api/middleware.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.