← All compilation units

Flyology.HTTP.Server.Middleware_Deadlines

Description

Narrows, but never restarts or extends, an absolute request deadline.

App_Context

type App_Context is limited private;

Call

procedure Call
  (Context : in out App_Context;
   X       : in out Flyology.HTTP.Server.Applications.Exchange;
   Next    : in out Components.Next_Handler)

Deadline-narrowing middleware component.

Parameters
Context

Typed application context

X

Borrowed request exchange

Next

Borrowed downstream continuation

Clock

function Clock return Ada.Real_Time.Time
Return value

Components

with package Components is new
  Flyology.HTTP.Server.Middleware (App_Context);

Maximum

Maximum : Duration;