Struct hyper::ffi::hyper_response
source · pub struct hyper_response(/* private fields */);
Available on crate feature
ffi
and hyper_unstable_ffi
only.Expand description
An HTTP response.
Obtain one of these by making a request with hyper_clientconn_send
, then
polling the executor unntil you get a hyper_task
of type
HYPER_TASK_RESPONSE
. To figure out which request this response
corresponds to, check the userdata of the task, which you should
previously have set to an application-specific identifier for the
request.
Methods:
- hyper_response_status: Get the HTTP-Status code of this response.
- hyper_response_version: Get the HTTP version used by this response.
- hyper_response_reason_phrase: Get a pointer to the reason-phrase of this response.
- hyper_response_reason_phrase_len: Get the length of the reason-phrase of this response.
- hyper_response_headers: Gets a reference to the HTTP headers of this response.
- hyper_response_body: Take ownership of the body of this response.
- hyper_response_free: Free an HTTP response.
Auto Trait Implementations§
impl Freeze for hyper_response
impl !RefUnwindSafe for hyper_response
impl Send for hyper_response
impl Sync for hyper_response
impl Unpin for hyper_response
impl !UnwindSafe for hyper_response
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