SWebViewProxyHtmlUtils class

Utilities for normalizing HTML payloads returned by CORS proxies.

Constructors

SWebViewProxyHtmlUtils()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

injectBaseTagIfMissing(String html, String baseUrl) String
Injects a <base href="..."> tag when none is present.
looksLikeHtml(String value) bool
Best-effort check indicating whether a string likely contains HTML markup.
normalizeProxyHtml(String body, {Map<String, String>? headers}) String
Normalizes proxy response payloads into usable HTML: