pub struct HttpsRequest<'a> {
pub url_scheme: &'a str,
pub client_host: Option<&'a str>,
pub x_forwarded_proto: Option<&'a str>,
pub route_require_https: Option<bool>,
}Expand description
The request facts the decision reads (request.url_scheme,
request.client_host, the X-Forwarded-Proto header, and the route
config’s require_https when a route config exists).
Fields§
§url_scheme: &'a strrequest.url_scheme (http / https).
client_host: Option<&'a str>request.client_host: the connecting address, when known.
x_forwarded_proto: Option<&'a str>The X-Forwarded-Proto header value, when present.
route_require_https: Option<bool>The route config’s require_https; None means no route config
(the global knob decides).
Trait Implementations§
Source§impl<'a> Clone for HttpsRequest<'a>
impl<'a> Clone for HttpsRequest<'a>
impl<'a> Copy for HttpsRequest<'a>
Source§impl<'a> Debug for HttpsRequest<'a>
impl<'a> Debug for HttpsRequest<'a>
impl<'a> Eq for HttpsRequest<'a>
Source§impl<'a> PartialEq for HttpsRequest<'a>
impl<'a> PartialEq for HttpsRequest<'a>
impl<'a> StructuralPartialEq for HttpsRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for HttpsRequest<'a>
impl<'a> RefUnwindSafe for HttpsRequest<'a>
impl<'a> Send for HttpsRequest<'a>
impl<'a> Sync for HttpsRequest<'a>
impl<'a> Unpin for HttpsRequest<'a>
impl<'a> UnsafeUnpin for HttpsRequest<'a>
impl<'a> UnwindSafe for HttpsRequest<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.