pub struct RequestBuilder { /* private fields */ }Implementations§
Source§impl RequestBuilder
impl RequestBuilder
pub fn method(self, method: impl Into<Method>) -> Self
pub fn path(self, path: impl IntoHeaderBytes) -> Self
pub fn header( self, name: impl IntoHeaderBytes, value: impl IntoHeaderBytes, ) -> Self
pub fn query_param( self, name: impl IntoHeaderBytes, value: impl IntoHeaderBytes, ) -> Self
pub fn payload(self, payload: impl Into<Bytes>) -> Self
pub fn body(self, body: impl Into<Bytes>) -> Self
Sourcepub fn stream(self, stream: RequestStream) -> Self
pub fn stream(self, stream: RequestStream) -> Self
Attach a streamed request body.
pub fn context(self, context: RequestContext) -> Self
pub fn telemetry(self, telemetry: TelemetryHandle) -> Self
pub fn build(self) -> Result<Request<Bytes>, ProximaError>
Trait Implementations§
Source§impl Debug for RequestBuilder
impl Debug for RequestBuilder
Auto Trait Implementations§
impl !Freeze for RequestBuilder
impl !RefUnwindSafe for RequestBuilder
impl !Sync for RequestBuilder
impl !UnwindSafe for RequestBuilder
impl Send for RequestBuilder
impl Unpin for RequestBuilder
impl UnsafeUnpin for RequestBuilder
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