pub struct StreamRequestBuilder { /* private fields */ }Expand description
Builder for creating HTTP streaming requests.
Implementations§
Source§impl StreamRequestBuilder
impl StreamRequestBuilder
Sourcepub fn config(self, config: StreamConfig) -> Self
pub fn config(self, config: StreamConfig) -> Self
Set the stream configuration.
Sourcepub async fn post_stream<T: Serialize>(
self,
endpoint: &str,
body: &T,
) -> Result<HttpStreamClient>
pub async fn post_stream<T: Serialize>( self, endpoint: &str, body: &T, ) -> Result<HttpStreamClient>
Make a streaming POST request.
Trait Implementations§
Source§impl Clone for StreamRequestBuilder
impl Clone for StreamRequestBuilder
Source§fn clone(&self) -> StreamRequestBuilder
fn clone(&self) -> StreamRequestBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StreamRequestBuilder
impl !RefUnwindSafe for StreamRequestBuilder
impl Send for StreamRequestBuilder
impl Sync for StreamRequestBuilder
impl Unpin for StreamRequestBuilder
impl UnsafeUnpin for StreamRequestBuilder
impl !UnwindSafe for StreamRequestBuilder
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