pub trait ICoreWebView2HttpRequestHeaders: IUnknown {
// Required methods
unsafe fn get_header(&self, name: LPCWSTR, value: *mut LPWSTR) -> HRESULT;
unsafe fn get_headers(
&self,
name: LPCWSTR,
iterator: *mut *mut *mut ICoreWebView2HttpHeadersCollectionIteratorVTable,
) -> HRESULT;
unsafe fn contains(&self, name: LPCWSTR, contains: *mut BOOL) -> HRESULT;
unsafe fn set_header(&self, name: LPCWSTR, value: LPCWSTR) -> HRESULT;
unsafe fn remove_header(&self, name: LPCWSTR) -> HRESULT;
unsafe fn get_iterator(
&self,
iterator: *mut *mut *mut ICoreWebView2HttpHeadersCollectionIteratorVTable,
) -> HRESULT;
}Expand description
HTTP request headers. Used to inspect the HTTP request on
WebResourceRequested event and NavigationStarting event.
> [!NOTE]\n> It is possible to modify the HTTP request from a WebResourceRequested
event, but not from a NavigationStarting event.
Required Methods§
Sourceunsafe fn get_header(&self, name: LPCWSTR, value: *mut LPWSTR) -> HRESULT
unsafe fn get_header(&self, name: LPCWSTR, value: *mut LPWSTR) -> HRESULT
Gets the header value matching the name.
Sourceunsafe fn get_headers(
&self,
name: LPCWSTR,
iterator: *mut *mut *mut ICoreWebView2HttpHeadersCollectionIteratorVTable,
) -> HRESULT
unsafe fn get_headers( &self, name: LPCWSTR, iterator: *mut *mut *mut ICoreWebView2HttpHeadersCollectionIteratorVTable, ) -> HRESULT
Gets the header value matching the name using an iterator.
Sourceunsafe fn contains(&self, name: LPCWSTR, contains: *mut BOOL) -> HRESULT
unsafe fn contains(&self, name: LPCWSTR, contains: *mut BOOL) -> HRESULT
Verifies that the headers contain an entry that matches the header name.
Sourceunsafe fn set_header(&self, name: LPCWSTR, value: LPCWSTR) -> HRESULT
unsafe fn set_header(&self, name: LPCWSTR, value: LPCWSTR) -> HRESULT
Adds or updates header that matches the name.
Sourceunsafe fn remove_header(&self, name: LPCWSTR) -> HRESULT
unsafe fn remove_header(&self, name: LPCWSTR) -> HRESULT
Removes header that matches the name.
Sourceunsafe fn get_iterator(
&self,
iterator: *mut *mut *mut ICoreWebView2HttpHeadersCollectionIteratorVTable,
) -> HRESULT
unsafe fn get_iterator( &self, iterator: *mut *mut *mut ICoreWebView2HttpHeadersCollectionIteratorVTable, ) -> HRESULT
Gets an iterator over the collection of request headers.
Trait Implementations§
Source§impl ComInterface for dyn ICoreWebView2HttpRequestHeaders
impl ComInterface for dyn ICoreWebView2HttpRequestHeaders
Source§const IID: IID = IID_ICORE_WEB_VIEW2_HTTP_REQUEST_HEADERS
const IID: IID = IID_ICORE_WEB_VIEW2_HTTP_REQUEST_HEADERS
The associated id for this interface
Source§type VTable = ICoreWebView2HttpRequestHeadersVTable
type VTable = ICoreWebView2HttpRequestHeadersVTable
A COM compatible V-Table
Source§fn is_iid_in_inheritance_chain(riid: &GUID) -> bool
fn is_iid_in_inheritance_chain(riid: &GUID) -> bool
Check whether a given IID is in the inheritance hierarchy of this interface