Skip to main content

Module client

Module client 

Source
Expand description

What the guard knows about the client making a request.

Structs§

ClientContext
Request attributes used for fingerprinting. Build it with Guard::client_context from headers, or by hand with ClientContext::new and the with_* methods.

Traits§

HeaderSource
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-For values.