Skip to main content
Module

x/windmill/windmill-api/index.ts>Middleware

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 Middleware
import { type Middleware } from "https://deno.land/x/windmill@v1.31.0/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.