pub struct StreamableHttpTransportBuilder(/* private fields */);Expand description
Builder for StreamableHttpTransport.
Implementations§
Source§impl StreamableHttpTransportBuilder
impl StreamableHttpTransportBuilder
pub fn headers(self, value: impl Into<BTreeMap<String, String>>) -> Self
pub fn timeout(self, value: impl Into<String>) -> Self
pub fn sse_read_timeout(self, value: impl Into<String>) -> Self
pub fn terminate_on_close(self, value: impl Into<bool>) -> Self
pub fn rest(self, value: Rest) -> Self
Sourcepub fn build(self) -> StreamableHttpTransport
pub fn build(self) -> StreamableHttpTransport
Return the completed wire value.
Auto Trait Implementations§
impl Freeze for StreamableHttpTransportBuilder
impl RefUnwindSafe for StreamableHttpTransportBuilder
impl Send for StreamableHttpTransportBuilder
impl Sync for StreamableHttpTransportBuilder
impl Unpin for StreamableHttpTransportBuilder
impl UnsafeUnpin for StreamableHttpTransportBuilder
impl UnwindSafe for StreamableHttpTransportBuilder
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