Struct ForwardedResolution

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

Outcome of resolving the forwarded headers of one request.

public readonly record struct ForwardedResolution : IEquatable<ForwardedResolution>

Implements

Properties

AddressApplied

True when came out of

public bool AddressApplied { get; init; }

ClientAddress

The address to treat as the client. Equal to the socket peer when

public IPAddress? ClientAddress { get; init; }

Scheme

The scheme the client used (http / https), or null when the

public string? Scheme { get; init; }

TrustedHops

How many trusted proxy entries were skipped while walking the chain.

public int TrustedHops { get; init; }

Constructors

ForwardedResolution(IPAddress?, string?, bool, int)

Outcome of resolving the forwarded headers of one request.