pub struct OpenRequest {
request: Handle,
_connection: Handle,
_session: Handle,
}Expand description
A sent request whose response headers have arrived; fields drop in declaration order, request before connection before session.
Fields§
§request: Handle§_connection: Handle§_session: HandleImplementations§
Source§impl OpenRequest
impl OpenRequest
Sourcepub fn send(
target: &UrlTarget,
method: &str,
bearer: Option<&str>,
body: Option<&[u8]>,
) -> Result<OpenRequest, HttpError>
pub fn send( target: &UrlTarget, method: &str, bearer: Option<&str>, body: Option<&[u8]>, ) -> Result<OpenRequest, HttpError>
body, when given, goes as application/json, the only type the installer posts.
Sourcepub fn query_number(&self, info: u32) -> Result<u32, HttpError>
pub fn query_number(&self, info: u32) -> Result<u32, HttpError>
A numeric response header, such as the status code or content length.
Sourcepub fn query_text(&self, info: u32) -> Option<String>
pub fn query_text(&self, info: u32) -> Option<String>
A textual response header, or None when it is absent or its length
cannot be read.
Auto Trait Implementations§
impl !Send for OpenRequest
impl !Sync for OpenRequest
impl Freeze for OpenRequest
impl RefUnwindSafe for OpenRequest
impl Unpin for OpenRequest
impl UnsafeUnpin for OpenRequest
impl UnwindSafe for OpenRequest
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