Struct actix_web::dev::ConnectionInfo [] [src]

pub struct ConnectionInfo<'a> { /* fields omitted */ }

HttpRequest connection information

Methods

impl<'a> ConnectionInfo<'a>
[src]

[src]

Create ConnectionInfo instance for a request.

[src]

Scheme of the request.

Scheme is resolved through the following headers, in this order:

  • Forwarded
  • X-Forwarded-Proto
  • Uri

[src]

Hostname of the request.

Hostname is resolved through the following headers, in this order:

  • Forwarded
  • X-Forwarded-Host
  • Host
  • Uri
  • Server hostname

[src]

Remote IP of client initiated HTTP request.

The IP is resolved through the following headers, in this order:

  • Forwarded
  • X-Forwarded-For
  • peer name of opened socket

Trait Implementations

Auto Trait Implementations

impl<'a> Send for ConnectionInfo<'a>

impl<'a> Sync for ConnectionInfo<'a>