Expand description
What the guard knows about the client making a request.
Structs§
- Client
Context - Request attributes used for fingerprinting. Build it with
Guard::client_contextfrom headers, or by hand withClientContext::newand thewith_*methods.
Traits§
- Header
Source - Read access to request headers, so the core works without any HTTP library.
Functions§
- canonical_
ip - Maps IPv4-mapped IPv6 addresses (
::ffff:a.b.c.d) to IPv4. - resolve_
client_ ip - Resolves the client IP from the TCP peer and
X-Forwarded-Forvalues.