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; }

HTTP request headers. Used to inspect the HTTP request on WebResourceRequested event and NavigationStarting event.

> [!NOTE] It is possible to modify the HTTP request from a WebResourceRequested event, but not from a NavigationStarting event.

Required methods

unsafe fn get_header(&self, name: LPCWSTR, value: *mut LPWSTR) -> HRESULT[src]

Gets the header value matching the name.

unsafe fn get_headers(
    &self,
    name: LPCWSTR,
    iterator: *mut *mut *mut ICoreWebView2HttpHeadersCollectionIteratorVTable
) -> HRESULT
[src]

Gets the header value matching the name using an iterator.

unsafe fn contains(&self, name: LPCWSTR, contains: *mut BOOL) -> HRESULT[src]

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

unsafe fn set_header(&self, name: LPCWSTR, value: LPCWSTR) -> HRESULT[src]

Adds or updates header that matches the name.

unsafe fn remove_header(&self, name: LPCWSTR) -> HRESULT[src]

Removes header that matches the name.

unsafe fn get_iterator(
    &self,
    iterator: *mut *mut *mut ICoreWebView2HttpHeadersCollectionIteratorVTable
) -> HRESULT
[src]

Gets an iterator over the collection of request headers.

Loading content...

Trait Implementations

impl ComInterface for dyn ICoreWebView2HttpRequestHeaders[src]

type VTable = ICoreWebView2HttpRequestHeadersVTable

A COM compatible V-Table

type Super = dyn IUnknown

The interface that this interface inherits from

impl<C: ICoreWebView2HttpRequestHeaders> ProductionComInterface<C> for dyn ICoreWebView2HttpRequestHeaders[src]

Implementations on Foreign Types

impl<T: ICoreWebView2HttpRequestHeaders + ComInterface + ?Sized> ICoreWebView2HttpRequestHeaders for ComRc<T>[src]

impl<T: ICoreWebView2HttpRequestHeaders + ComInterface + ?Sized> ICoreWebView2HttpRequestHeaders for ComPtr<T>[src]

Loading content...

Implementors

Loading content...