Struct tower_http::cors::Origin
source · [−]pub struct Origin(_);
This is supported on crate feature
cors
only.Expand description
Represents a Access-Control-Allow-Origin
header.
See CorsLayer::allow_origin
for more details.
Implementations
Set a single allow origin target
See CorsLayer::allow_origin
for more details.
Set multiple allow origin targets
See CorsLayer::allow_origin
for more details.
Set the allowed origins from a predicate
See CorsLayer::allow_origin
for more details.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Origin
impl !UnwindSafe for Origin
Blanket Implementations
Mutably borrows from an owned value. Read more
This is supported on crate feature
follow-redirect
only.Create a new Policy
that returns Action::Follow
only if self
and other
return
Action::Follow
. Read more
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