Struct windows::Web::Http::HttpRequestMessage
pub struct HttpRequestMessage(/* private fields */);
Implementations§
§impl HttpRequestMessage
impl HttpRequestMessage
pub fn new() -> Result<Self>
pub fn Close(&self) -> Result<()>
pub fn Content(&self) -> Result<IHttpContent>
pub fn SetContent<P0>(&self, value: P0) -> Result<()>where
P0: IntoParam<IHttpContent>,
pub fn Headers(&self) -> Result<HttpRequestHeaderCollection>
pub fn Method(&self) -> Result<HttpMethod>
pub fn SetMethod<P0>(&self, value: P0) -> Result<()>where
P0: IntoParam<HttpMethod>,
pub fn Properties(&self) -> Result<IMap<HSTRING, IInspectable>>
pub fn RequestUri(&self) -> Result<Uri>
pub fn SetRequestUri<P0>(&self, value: P0) -> Result<()>where
P0: IntoParam<Uri>,
pub fn TransportInformation(&self) -> Result<HttpTransportInformation>
pub fn PrivacyAnnotation(&self) -> Result<HSTRING>
pub fn SetPrivacyAnnotation(&self, value: &HSTRING) -> Result<()>
pub fn Create<P0, P1>(method: P0, uri: P1) -> Result<HttpRequestMessage>where
P0: IntoParam<HttpMethod>,
P1: IntoParam<Uri>,
pub fn ToString(&self) -> Result<HSTRING>
Trait Implementations§
§impl Clone for HttpRequestMessage
impl Clone for HttpRequestMessage
§fn clone(&self) -> HttpRequestMessage
fn clone(&self) -> HttpRequestMessage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for HttpRequestMessage
impl Debug for HttpRequestMessage
§impl From<&HttpRequestMessage> for &IInspectable
impl From<&HttpRequestMessage> for &IInspectable
§fn from(value: &HttpRequestMessage) -> Self
fn from(value: &HttpRequestMessage) -> Self
Converts to this type from the input type.
§impl From<&HttpRequestMessage> for &IUnknown
impl From<&HttpRequestMessage> for &IUnknown
§fn from(value: &HttpRequestMessage) -> Self
fn from(value: &HttpRequestMessage) -> Self
Converts to this type from the input type.
§impl From<HttpRequestMessage> for IInspectable
impl From<HttpRequestMessage> for IInspectable
§fn from(value: HttpRequestMessage) -> Self
fn from(value: HttpRequestMessage) -> Self
Converts to this type from the input type.
§impl From<HttpRequestMessage> for IUnknown
impl From<HttpRequestMessage> for IUnknown
§fn from(value: HttpRequestMessage) -> Self
fn from(value: HttpRequestMessage) -> Self
Converts to this type from the input type.
§impl Interface for HttpRequestMessage
impl Interface for HttpRequestMessage
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§impl PartialEq for HttpRequestMessage
impl PartialEq for HttpRequestMessage
§fn eq(&self, other: &HttpRequestMessage) -> bool
fn eq(&self, other: &HttpRequestMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for HttpRequestMessage
impl Send for HttpRequestMessage
impl StructuralPartialEq for HttpRequestMessage
impl Sync for HttpRequestMessage
Auto Trait Implementations§
impl RefUnwindSafe for HttpRequestMessage
impl Unpin for HttpRequestMessage
impl UnwindSafe for HttpRequestMessage
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