Class RouteRegistration

Namespace: redb.Route.Http
Assembly: redb.Route.Http.Hosting.dll

Handle for a registered route on a shared server.

public sealed class RouteRegistration

Inheritance

Object→RouteRegistration

Properties

Cors

Optional per-route CORS configuration. When set, the shared server applies these

public RouteCorsOptions? Cors { get; }

Handler

The request handler.

public Func<HttpContext, Task> Handler { get; }

Methods

Allowed methods (comma-separated) or null for all methods.

public string? Methods { get; }

PathTemplate

The route path template.

public string PathTemplate { get; }