pub struct ClientRequestInfo<'a> {
pub method: &'a Method,
pub scheme: &'a str,
pub server_address: Option<&'a str>,
pub server_port: Option<u16>,
pub path: &'a str,
pub protocol_version: Version,
}Expand description
An outgoing request, as ClientCall::start records it.
Fields§
§method: &'a MethodThe method. Methods outside the standard ones are recorded as
_OTHER, with the method as sent in http.request.method_original.
scheme: &'a strurl.scheme, such as https.
server_address: Option<&'a str>server.address: the host the request is sent to.
server_port: Option<u16>server.port. Without one, the scheme’s default port is recorded
for http and https.
path: &'a strThe URL’s path. The query isn’t taken: it may hold secrets.
protocol_version: VersionThe HTTP version asked for. The response’s version is recorded instead when there is one.
Trait Implementations§
Source§impl<'a> Clone for ClientRequestInfo<'a>
impl<'a> Clone for ClientRequestInfo<'a>
impl<'a> Copy for ClientRequestInfo<'a>
Auto Trait Implementations§
impl<'a> Forget for ClientRequestInfo<'a>
impl<'a> Freeze for ClientRequestInfo<'a>
impl<'a> Move for ClientRequestInfo<'a>
impl<'a> RefUnwindSafe for ClientRequestInfo<'a>
impl<'a> Send for ClientRequestInfo<'a>
impl<'a> Sync for ClientRequestInfo<'a>
impl<'a> Unpin for ClientRequestInfo<'a>
impl<'a> UnsafeUnpin for ClientRequestInfo<'a>
impl<'a> UnwindSafe for ClientRequestInfo<'a>
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