Struct salvo::http::headers::Origin [−][src]
pub struct Origin(_);
Expand description
The Origin
header.
The Origin
header is a version of the Referer
header that is used for all HTTP fetches and POST
s whose CORS flag is set.
This header is often used to inform recipients of the security context of where the request was initiated.
Following the spec, https://fetch.spec.whatwg.org/#origin-header, the value of this header is composed of a String (scheme), Host (host/port)
Examples
use headers::Origin;
let origin = Origin::NULL;
Implementations
Trait Implementations
The name of this header.
Decode this type from an iterator of HeaderValue
s.
Auto Trait Implementations
impl RefUnwindSafe for Origin
impl UnwindSafe for Origin
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more