Struct fire_http_representation::request::RequestBuilder
source · pub struct RequestBuilder { /* private fields */ }
Expand description
A builder to create a Request
.
This is only useful for direct request calling on a FirePit.
Implementations§
source§impl RequestBuilder
impl RequestBuilder
sourcepub fn address(self, addr: impl Into<SocketAddr>) -> Self
pub fn address(self, addr: impl Into<SocketAddr>) -> Self
Sets the address.
sourcepub fn content_type(self, content_type: impl Into<ContentType>) -> Self
pub fn content_type(self, content_type: impl Into<ContentType>) -> Self
Sets the content type.
sourcepub fn values_mut(&mut self) -> &mut HeaderValues
pub fn values_mut(&mut self) -> &mut HeaderValues
Returns HeaderValues
mutably.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RequestBuilder
impl Send for RequestBuilder
impl Sync for RequestBuilder
impl Unpin for RequestBuilder
impl !UnwindSafe 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