pub struct HttpStaticComponent { /* private fields */ }Expand description
Component factory for the http-static: scheme.
Creates HttpStaticEndpoint instances from URIs like
http-static:/path/to/dir?port=8080&spaFallback=true.
Implementations§
Source§impl HttpStaticComponent
impl HttpStaticComponent
pub fn new() -> Self
pub fn with_config(config: HttpStaticConfig) -> Self
Trait Implementations§
Source§impl Component for HttpStaticComponent
impl Component for HttpStaticComponent
Source§fn create_endpoint(
&self,
uri: &str,
_ctx: &dyn ComponentContext,
) -> Result<Box<dyn Endpoint>, CamelError>
fn create_endpoint( &self, uri: &str, _ctx: &dyn ComponentContext, ) -> Result<Box<dyn Endpoint>, CamelError>
Create an endpoint from a URI string.
Auto Trait Implementations§
impl Freeze for HttpStaticComponent
impl RefUnwindSafe for HttpStaticComponent
impl Send for HttpStaticComponent
impl Sync for HttpStaticComponent
impl Unpin for HttpStaticComponent
impl UnsafeUnpin for HttpStaticComponent
impl UnwindSafe for HttpStaticComponent
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