pub struct HttpServerConfig {
pub host: String,
pub port: u16,
pub path: String,
pub max_request_body: usize,
pub max_response_body: usize,
}Expand description
Configuration for an HTTP server (consumer) endpoint.
Fields§
§host: StringBind address, e.g. “0.0.0.0” or “127.0.0.1”.
port: u16TCP port to listen on.
path: StringURL path this consumer handles, e.g. “/orders”.
max_request_body: usizeMaximum request body size in bytes.
max_response_body: usizeMaximum response body size for materializing streams in bytes.
Implementations§
Source§impl HttpServerConfig
impl HttpServerConfig
pub fn from_uri(uri: &str) -> Result<Self, CamelError>
Trait Implementations§
Source§impl Clone for HttpServerConfig
impl Clone for HttpServerConfig
Source§fn clone(&self) -> HttpServerConfig
fn clone(&self) -> HttpServerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HttpServerConfig
impl RefUnwindSafe for HttpServerConfig
impl Send for HttpServerConfig
impl Sync for HttpServerConfig
impl Unpin for HttpServerConfig
impl UnsafeUnpin for HttpServerConfig
impl UnwindSafe for HttpServerConfig
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