Middleware class abstract

A middleware that can process HTTP requests and responses.

Middleware can be used to modify requests before they are sent or to process responses after they are received. They form a chain where each middleware can choose to delegate to the next middleware or handle the request itself.

Implementers

Constructors

Middleware.new()
const
Middleware.inline([InlineMiddlewareCallback? handler])
Creates a middleware from an inline callback function.
const
factory
Middleware.inlineQueue([InlineMiddlewareCallback? handler, WorkQueueBase? queue])
Creates a middleware that processes requests sequentially using a queue.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call(Handler innerSend) Handler
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited