Trait webview2_sys::ICoreWebView2HttpRequestHeaders[][src]

pub trait ICoreWebView2HttpRequestHeaders: IUnknown {
    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

Gets the header value matching the name.

Gets the header value matching the name using an iterator.

Verifies that the headers contain an entry that matches the header name.

Adds or updates header that matches the name.

Removes header that matches the name.

Gets an iterator over the collection of request headers.

Trait Implementations

A COM compatible V-Table

The interface that this interface inherits from

The associated id for this interface

Check whether a given IID is in the inheritance hierarchy of this interface

Get the vtable for a particular COM interface

Implementations on Foreign Types

Implementors