untrusted
Builds a FeedFetcher for feed URLs an administrator supplies: an Untrusted policy (OutboundUrlPolicy.untrusted()), an owned UrlFetcher(userAgent, policy) and so an owned OkHttpTransport with a 2 MiB decoded-body cap, 3 redirects and no https-to-http hop. Stable Core. close() closes the UrlFetcher and so the transport, which cancels every request still on the network: each such fetch returns Closed("transport"). See the overload with a policy to add the deployment's own denied ranges or ports.
Return
the fetcher; the caller closes it.
Parameters
the User-Agent sent on every request: non-blank, visible ASCII, no leading or trailing space.
sets the parser, the parse dispatcher, the parse concurrency and Accept.
Throws
if the configuration is out of range or userAgent is refused by the transport; nothing stays open.
As the overload without a policy, for a policy of the caller's own: OutboundUrlPolicy.untrusted { extraDeniedRanges += … }. Stable Core. The transport is built with the policy's settings as they are; close() closes it as the overload without a policy does.
Return
the fetcher; the caller closes it.
Parameters
the User-Agent sent on every request: non-blank, visible ASCII, no leading or trailing space.
the policy the transport enforces and the pre-check applies.
sets the parser, the parse dispatcher, the parse concurrency and Accept.
Throws
as the overload without a policy, and for a policy.settings.maxResponseBytes above Int.MAX_VALUE - 8.