Struct windows::Web::Http::Headers::HttpRequestHeaderCollection
pub struct HttpRequestHeaderCollection(/* private fields */);
Implementations§
§impl HttpRequestHeaderCollection
impl HttpRequestHeaderCollection
pub fn Accept(&self) -> Result<HttpMediaTypeWithQualityHeaderValueCollection>
pub fn AcceptEncoding( &self ) -> Result<HttpContentCodingWithQualityHeaderValueCollection>
pub fn AcceptLanguage( &self ) -> Result<HttpLanguageRangeWithQualityHeaderValueCollection>
pub fn Authorization(&self) -> Result<HttpCredentialsHeaderValue>
pub fn SetAuthorization<P0>(&self, value: P0) -> Result<()>where
P0: IntoParam<HttpCredentialsHeaderValue>,
pub fn CacheControl(&self) -> Result<HttpCacheDirectiveHeaderValueCollection>
pub fn Connection(&self) -> Result<HttpConnectionOptionHeaderValueCollection>
pub fn Cookie(&self) -> Result<HttpCookiePairHeaderValueCollection>
pub fn Date(&self) -> Result<IReference<DateTime>>
pub fn SetDate<P0>(&self, value: P0) -> Result<()>where
P0: IntoParam<IReference<DateTime>>,
pub fn Expect(&self) -> Result<HttpExpectationHeaderValueCollection>
pub fn From(&self) -> Result<HSTRING>
pub fn SetFrom(&self, value: &HSTRING) -> Result<()>
pub fn Host(&self) -> Result<HostName>
pub fn SetHost<P0>(&self, value: P0) -> Result<()>where
P0: IntoParam<HostName>,
pub fn IfModifiedSince(&self) -> Result<IReference<DateTime>>
pub fn SetIfModifiedSince<P0>(&self, value: P0) -> Result<()>where
P0: IntoParam<IReference<DateTime>>,
pub fn IfUnmodifiedSince(&self) -> Result<IReference<DateTime>>
pub fn SetIfUnmodifiedSince<P0>(&self, value: P0) -> Result<()>where
P0: IntoParam<IReference<DateTime>>,
pub fn MaxForwards(&self) -> Result<IReference<u32>>
pub fn SetMaxForwards<P0>(&self, value: P0) -> Result<()>where
P0: IntoParam<IReference<u32>>,
pub fn ProxyAuthorization(&self) -> Result<HttpCredentialsHeaderValue>
pub fn SetProxyAuthorization<P0>(&self, value: P0) -> Result<()>where
P0: IntoParam<HttpCredentialsHeaderValue>,
pub fn Referer(&self) -> Result<Uri>
pub fn SetReferer<P0>(&self, value: P0) -> Result<()>where
P0: IntoParam<Uri>,
pub fn TransferEncoding( &self ) -> Result<HttpTransferCodingHeaderValueCollection>
pub fn UserAgent(&self) -> Result<HttpProductInfoHeaderValueCollection>
pub fn Append(&self, name: &HSTRING, value: &HSTRING) -> Result<()>
pub fn TryAppendWithoutValidation( &self, name: &HSTRING, value: &HSTRING ) -> Result<bool>
pub fn First(&self) -> Result<IIterator<IKeyValuePair<HSTRING, HSTRING>>>
pub fn Lookup(&self, key: &HSTRING) -> Result<HSTRING>
pub fn Size(&self) -> Result<u32>
pub fn HasKey(&self, key: &HSTRING) -> Result<bool>
pub fn GetView(&self) -> Result<IMapView<HSTRING, HSTRING>>
pub fn Insert(&self, key: &HSTRING, value: &HSTRING) -> Result<bool>
pub fn Remove(&self, key: &HSTRING) -> Result<()>
pub fn Clear(&self) -> Result<()>
pub fn ToString(&self) -> Result<HSTRING>
Trait Implementations§
§impl Clone for HttpRequestHeaderCollection
impl Clone for HttpRequestHeaderCollection
§fn clone(&self) -> HttpRequestHeaderCollection
fn clone(&self) -> HttpRequestHeaderCollection
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 HttpRequestHeaderCollection
impl Debug for HttpRequestHeaderCollection
§impl From<&HttpRequestHeaderCollection> for &IInspectable
impl From<&HttpRequestHeaderCollection> for &IInspectable
§fn from(value: &HttpRequestHeaderCollection) -> Self
fn from(value: &HttpRequestHeaderCollection) -> Self
Converts to this type from the input type.
§impl From<&HttpRequestHeaderCollection> for &IUnknown
impl From<&HttpRequestHeaderCollection> for &IUnknown
§fn from(value: &HttpRequestHeaderCollection) -> Self
fn from(value: &HttpRequestHeaderCollection) -> Self
Converts to this type from the input type.
§impl From<HttpRequestHeaderCollection> for IInspectable
impl From<HttpRequestHeaderCollection> for IInspectable
§fn from(value: HttpRequestHeaderCollection) -> Self
fn from(value: HttpRequestHeaderCollection) -> Self
Converts to this type from the input type.
§impl From<HttpRequestHeaderCollection> for IUnknown
impl From<HttpRequestHeaderCollection> for IUnknown
§fn from(value: HttpRequestHeaderCollection) -> Self
fn from(value: HttpRequestHeaderCollection) -> Self
Converts to this type from the input type.
§impl Interface for HttpRequestHeaderCollection
impl Interface for HttpRequestHeaderCollection
§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 IntoIterator for &HttpRequestHeaderCollection
impl IntoIterator for &HttpRequestHeaderCollection
§type Item = IKeyValuePair<HSTRING, HSTRING>
type Item = IKeyValuePair<HSTRING, HSTRING>
The type of the elements being iterated over.
§type IntoIter = IIterator<<&HttpRequestHeaderCollection as IntoIterator>::Item>
type IntoIter = IIterator<<&HttpRequestHeaderCollection as IntoIterator>::Item>
Which kind of iterator are we turning this into?
§impl IntoIterator for HttpRequestHeaderCollection
impl IntoIterator for HttpRequestHeaderCollection
§type Item = IKeyValuePair<HSTRING, HSTRING>
type Item = IKeyValuePair<HSTRING, HSTRING>
The type of the elements being iterated over.
§type IntoIter = IIterator<<HttpRequestHeaderCollection as IntoIterator>::Item>
type IntoIter = IIterator<<HttpRequestHeaderCollection as IntoIterator>::Item>
Which kind of iterator are we turning this into?
§impl PartialEq for HttpRequestHeaderCollection
impl PartialEq for HttpRequestHeaderCollection
§fn eq(&self, other: &HttpRequestHeaderCollection) -> bool
fn eq(&self, other: &HttpRequestHeaderCollection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for HttpRequestHeaderCollection
impl Send for HttpRequestHeaderCollection
impl StructuralPartialEq for HttpRequestHeaderCollection
impl Sync for HttpRequestHeaderCollection
Auto Trait Implementations§
impl RefUnwindSafe for HttpRequestHeaderCollection
impl Unpin for HttpRequestHeaderCollection
impl UnwindSafe for HttpRequestHeaderCollection
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