Trait webview2_sys::ICoreWebView2HttpResponseHeaders [−][src]
pub trait ICoreWebView2HttpResponseHeaders: IUnknown {
unsafe fn append_header(&self, name: LPCWSTR, value: LPCWSTR) -> HRESULT;
unsafe fn contains(&self, name: LPCWSTR, contains: *mut BOOL) -> HRESULT;
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 get_iterator(
&self,
iterator: *mut *mut *mut ICoreWebView2HttpHeadersCollectionIteratorVTable
) -> HRESULT;
}
Expand description
HTTP response headers. Used to construct a WebResourceResponse
for the
WebResourceRequested
event.
Required methods
unsafe fn append_header(&self, name: LPCWSTR, value: LPCWSTR) -> HRESULT
unsafe fn append_header(&self, name: LPCWSTR, value: LPCWSTR) -> HRESULT
Appends header line with name and value.
Verifies that the headers contain entries that match the header name.
Gets the first header value in the collection matching the name.
unsafe 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 values matching the name.
unsafe 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 entire response headers.
Trait Implementations
A COM compatible V-Table
Check whether a given IID is in the inheritance hierarchy of this interface