Struct jsonrpsee_http_server::AccessControlBuilder [−][src]
pub struct AccessControlBuilder { /* fields omitted */ }
Expand description
Convenience builder pattern
Implementations
Allow all hosts.
Allow all origins.
Allow all headers.
pub fn set_allowed_hosts<List, H>(self, list: List) -> Result<Self, Error> where
List: IntoIterator<Item = H>,
H: Into<Host>,
pub fn set_allowed_hosts<List, H>(self, list: List) -> Result<Self, Error> where
List: IntoIterator<Item = H>,
H: Into<Host>,
Configure allowed hosts.
Default - allow all.
pub fn set_allowed_origins<Origin, List>(
self,
list: List
) -> Result<Self, Error> where
List: IntoIterator<Item = Origin>,
Origin: Into<AccessControlAllowOrigin>,
pub fn set_allowed_origins<Origin, List>(
self,
list: List
) -> Result<Self, Error> where
List: IntoIterator<Item = Origin>,
Origin: Into<AccessControlAllowOrigin>,
Configure allowed origins.
Default - allow all.
pub fn set_allowed_headers<Header, List>(
self,
list: List
) -> Result<Self, Error> where
List: IntoIterator<Item = Header>,
Header: Into<String>,
pub fn set_allowed_headers<Header, List>(
self,
list: List
) -> Result<Self, Error> where
List: IntoIterator<Item = Header>,
Header: Into<String>,
Configure allowed CORS headers.
Default - allow all.
Enable or disable to continue with invalid CORS.
Default: false.
Build.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AccessControlBuilder
impl Send for AccessControlBuilder
impl Sync for AccessControlBuilder
impl Unpin for AccessControlBuilder
impl UnwindSafe for AccessControlBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more
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