pub struct HttpConfig {
pub url: String,
pub headers: IndexMap<String, String>,
pub bearer_token: Option<String>,
}Expand description
Streamable HTTP server.
Fields§
§url: String§headers: IndexMap<String, String>Extra headers sent with every request.
bearer_token: Option<String>Bearer token for the Authorization header (without the Bearer prefix).
Trait Implementations§
Source§impl Clone for HttpConfig
impl Clone for HttpConfig
Source§impl Debug for HttpConfig
impl Debug for HttpConfig
Source§impl<'de> Deserialize<'de> for HttpConfig
impl<'de> Deserialize<'de> for HttpConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HttpConfig
impl PartialEq for HttpConfig
Source§impl Serialize for HttpConfig
impl Serialize for HttpConfig
impl StructuralPartialEq for HttpConfig
Auto Trait Implementations§
impl Forget for HttpConfig
impl Freeze for HttpConfig
impl Move for HttpConfig
impl RefUnwindSafe for HttpConfig
impl Send for HttpConfig
impl Sync for HttpConfig
impl Unpin for HttpConfig
impl UnsafeUnpin for HttpConfig
impl UnwindSafe for HttpConfig
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