import { type Middleware } from "https://deno.land/x/periskope_maytapi_deno@v1.4.0/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): Observable<RequestContext>
Modifies the request before the request is sent.
post(context: ResponseContext): Observable<ResponseContext>
Modifies the returned response before it is deserialized.