Namespace Cratis.Arc.Http

Classes

AuthenticationMiddleware

Middleware for authenticating HTTP requests.

AuthenticationRequiredWithoutHandlers

The exception that is thrown when an endpoint requires authentication but no authentication handlers are registered.

CookieOptions

Options for creating HTTP cookies.

EndpointFallbackAuthorization

Applies the Arc Core host's authentication requirement when authentication handlers are registered.

EndpointMetadata

Represents metadata for an endpoint.

EndpointRouteHelper

Provides shared helpers for building endpoint routes and mapping result status codes.

FallbackMiddleware

Middleware for serving a fallback file when no route matches (typically for SPAs).

HttpListenerEndpointMapper

Implementation of IEndpointMapper using HttpListener.

HttpListenerRequestContext

Implementation of IHttpRequestContext for HttpListenerContext.

HttpListenerWebSocket

Implementation of IWebSocket for HttpListener WebSockets.

HttpListenerWebSocketContext

Implementation of IWebSocketContext for HttpListener.

HttpRequestContextAccessor

Default implementation of IHttpRequestContextAccessor.

HttpRequestContextEndpointExtensions

Extension methods for exposing the current endpoint's EndpointMetadata on an IHttpRequestContext.

HttpRequestContextExtensions

Extension methods for handling correlation IDs in HTTP contexts.

HttpRequestPipeline

Implementation of IHttpRequestPipeline that processes HTTP requests through a chain of middlewares.

MimeTypes

Provides MIME type mappings for common file extensions.

RouteInfo

Represents information about a registered route.

StaticFileOptions

Options for static file serving middleware.

StaticFilesMiddleware

Middleware for serving static files.

WellKnownRoutesMiddleware

Middleware for handling well-known routes (e.g., commands, queries).

Interfaces

IEndpointFallbackAuthorization

Applies the host's default endpoint authorization to a query admitted through an anonymous hub route.

IEndpointMapper

Defines a system that can map HTTP endpoints for commands and queries.

IHttpRequestContext

Represents an abstraction for an HTTP request context that can be implemented by different HTTP frameworks.

IHttpRequestContextAccessor

Provides access to the current IHttpRequestContext.

IHttpRequestMiddleware

Defines a middleware component in the HTTP request pipeline.

IHttpRequestPipeline

Defines a pipeline for handling HTTP requests through a chain of middlewares.

IWebSocket

Represents an abstraction for WebSocket communication.

IWebSocketContext

Represents an abstraction for WebSocket operations.

Enums

SameSiteMode

Specifies the SameSite mode for a cookie.

Delegates

HttpRequestDelegate

Defines a delegate for HTTP request middleware.