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: Param<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: Param<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: Param<HostName>,
pub fn IfModifiedSince(&self) -> Result<IReference<DateTime>>
pub fn SetIfModifiedSince<P0>(&self, value: P0) -> Result<()>where
P0: Param<IReference<DateTime>>,
pub fn IfUnmodifiedSince(&self) -> Result<IReference<DateTime>>
pub fn SetIfUnmodifiedSince<P0>(&self, value: P0) -> Result<()>where
P0: Param<IReference<DateTime>>,
pub fn MaxForwards(&self) -> Result<IReference<u32>>
pub fn SetMaxForwards<P0>(&self, value: P0) -> Result<()>where
P0: Param<IReference<u32>>,
pub fn ProxyAuthorization(&self) -> Result<HttpCredentialsHeaderValue>
pub fn SetProxyAuthorization<P0>(&self, value: P0) -> Result<()>where
P0: Param<HttpCredentialsHeaderValue>,
pub fn Referer(&self) -> Result<Uri>
pub fn SetReferer<P0>(&self, value: P0) -> Result<()>where
P0: Param<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 CanInto<IInspectable> for HttpRequestHeaderCollection
impl CanInto<IInspectable> for HttpRequestHeaderCollection
§impl CanInto<IIterable<IKeyValuePair<HSTRING, HSTRING>>> for HttpRequestHeaderCollection
impl CanInto<IIterable<IKeyValuePair<HSTRING, HSTRING>>> for HttpRequestHeaderCollection
§impl CanInto<IStringable> for HttpRequestHeaderCollection
impl CanInto<IStringable> for HttpRequestHeaderCollection
§impl CanInto<IUnknown> for HttpRequestHeaderCollection
impl CanInto<IUnknown> for HttpRequestHeaderCollection
§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
§const IID: GUID = <IHttpRequestHeaderCollection as windows_core::Interface>::IID
const IID: GUID = <IHttpRequestHeaderCollection as windows_core::Interface>::IID
The
GUID
associated with the interface.§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§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§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 Freeze for HttpRequestHeaderCollection
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)