http_middleware_client library

Classes

HttpMiddlewareClient
An HTTP client that supports middleware for processing requests and responses.
Middleware
A middleware that can process HTTP requests and responses.
QueueMiddleware
A middleware that processes requests sequentially using a queue.
QueueProxy<T>
Interface for task queue implementations
SendPipeline
A pipeline of middleware that can process HTTP requests.
TaskBase<T>
Base class for all tasks that can be executed by a WorkQueue
TaskScope
Represents a scope for tasks within a specific zone. Each task scope maintains its own queue of nested tasks.
WorkQueue
Concrete implementation of a work queue
WorkQueueBase
Base class for work queues that manage asynchronous task execution with support for nested task scheduling without deadlocks.
WorkQueueTask<T>
Concrete implementation of a task for WorkQueue

Extension Types

HttpMethod
HTTP methods shortcuts.

Typedefs

CollectionFactoryCallback = QueueProxy<TaskBase<Object?>> Function()
Callback function type for creating task collections
Handler = Future<StreamedResponse> Function(BaseRequest request, Map<String, Object?> context)
A function that handles an HTTP request and returns a streamed response.
InlineMiddlewareCallback = Future<StreamedResponse> Function(BaseRequest request, Map<String, Object?> context, Handler handler)
A function that handles an HTTP request with inline middleware.
MiddlewareCallback = Handler Function(Handler innerSend)
A function that takes a handler and returns a new handler with middleware applied.
RunnableCallback<T> = Future<T> Function()
Callback function type for runnable tasks that return a Future