pub struct hyper_request(/* private fields */);
Available on crate feature
ffi
and hyper_unstable_ffi
only.Expand description
An HTTP request.
Once you’ve finished constructing a request, you can send it with
hyper_clientconn_send
.
Methods:
- hyper_request_new: Construct a new HTTP request.
- hyper_request_headers: Gets a mutable reference to the HTTP headers of this request
- hyper_request_set_body: Set the body of the request.
- hyper_request_set_method: Set the HTTP Method of the request.
- hyper_request_set_uri: Set the URI of the request.
- hyper_request_set_uri_parts: Set the URI of the request with separate scheme, authority, and path/query strings.
- hyper_request_set_version: Set the preferred HTTP version of the request.
- hyper_request_on_informational: Set an informational (1xx) response callback.
- hyper_request_free: Free an HTTP request.
Auto Trait Implementations§
impl !Freeze for hyper_request
impl !RefUnwindSafe for hyper_request
impl Send for hyper_request
impl Sync for hyper_request
impl Unpin for hyper_request
impl !UnwindSafe for hyper_request
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