pub struct HttpHandler {
pub endpoint: String,
pub method: HttpMethod,
pub headers: FxHashMap<String, String>,
pub auth: Option<AuthConfig>,
pub timeout_ms: Option<u64>,
/* private fields */
}Fields§
§endpoint: String§method: HttpMethod§headers: FxHashMap<String, String>§auth: Option<AuthConfig>§timeout_ms: Option<u64>Implementations§
Source§impl HttpHandler
impl HttpHandler
Trait Implementations§
Source§impl Clone for HttpHandler
impl Clone for HttpHandler
Source§fn clone(&self) -> HttpHandler
fn clone(&self) -> HttpHandler
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 moreSource§impl Debug for HttpHandler
impl Debug for HttpHandler
Source§impl Handler for HttpHandler
impl Handler for HttpHandler
Source§type Output = HttpOutput
type Output = HttpOutput
Output type for the handler
Source§fn handle<'life0, 'async_trait>(
&'life0 self,
input: Self::Input,
) -> Pin<Box<dyn Future<Output = Result<Self::Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle<'life0, 'async_trait>(
&'life0 self,
input: Self::Input,
) -> Pin<Box<dyn Future<Output = Result<Self::Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute the handler with type-safe input. Read more
Source§fn input_schema() -> RootSchema
fn input_schema() -> RootSchema
Generate JSON schema for input (override for custom schemas). Read more
Source§fn output_schema() -> RootSchema
fn output_schema() -> RootSchema
Generate JSON schema for output. Read more
Auto Trait Implementations§
impl Freeze for HttpHandler
impl !RefUnwindSafe for HttpHandler
impl Send for HttpHandler
impl Sync for HttpHandler
impl Unpin for HttpHandler
impl !UnwindSafe for HttpHandler
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