Skip to content

wv2WebResourceContext

The kind of HTTP request a filter should match when registered with AddWebResourceRequestedFilter (or removed with RemoveWebResourceRequestedFilter). Mirrors the COREWEBVIEW2_WEB_RESOURCE_CONTEXT enumeration.

ConstantValueDescription
wv2All0Match every request, irrespective of kind.
wv2Document1Top-level HTML document.
wv2Stylesheet2CSS stylesheet.
wv2Image3Image resource.
wv2Media4Audio or video resource.
wv2Font5Web-font resource.
wv2Script6JavaScript file.
wv2XMLHttpRequest7XMLHttpRequest (XHR) call.
wv2Fetch8fetch() API call.
wv2TextTrack9Text track for <video> / <audio>.
wv2EventSource10Server-sent-events stream.
wv2WebSocket11WebSocket connection.
wv2Manifest12Web-app manifest.
wv2SignedExchange13Signed-HTTP-exchange resource.
wv2Ping14Hyperlink ping request.
wv2CspViolationReport15Content-Security-Policy violation report.
wv2Other16A request not covered by the other kinds.

twinBASIC and LOGO copyright of "WaynePhillipsEA" author