Interface IHttpRequestMiddleware

Namespace
Cratis.Arc.Http
Assembly
Cratis.Arc.Core.dll

Defines a middleware component in the HTTP request pipeline.

public interface IHttpRequestMiddleware
Extension Methods

Methods

InvokeAsync(HttpListenerContext, HttpRequestDelegate)

Process an HTTP request.

Task<bool> InvokeAsync(HttpListenerContext context, HttpRequestDelegate next)

Parameters

context HttpListenerContext

The HTTP listener context.

next HttpRequestDelegate

The next middleware in the pipeline.

Returns

Task<bool>

A task that represents the asynchronous operation, returning true if the request was handled, false otherwise.