Expand description
Network — outbound requests, and whether they may leave.
Every client in the engine builds its requests through this. What a host
can replace today is narrower: the provider a tool uses arrives through
ToolContext.exec, while the model, OAuth, telemetry and registry clients
each construct their own. Their traffic is Origin::Operator, which no
policy restricts, so the behavior is right — but auditing or going offline
as a whole needs an injection point that does not exist yet.
Structs§
- Http
Request - Http
Response - Http
Stream - A response whose body has not been read yet.
Enums§
- Origin
- Who chose this destination.
Constants§
- DEFAULT_
MAX_ REDIRECTS - How many redirects a provider follows when the caller does not say.
Traits§
- Network
- Every outbound request, in one place.
Functions§
- carried_
v4 - The IPv4 address an IPv6 one is a way of reaching: mapped
(
::ffff:a.b.c.d), SIIT (::ffff:0:a.b.c.d), compatible (::a.b.c.d), NAT64 (64:ff9b::/96, and the local-use64:ff9b:1::/48with the address in its last 32 bits), 6to4 (2002::/16) and Teredo’s client (2001::/32, stored inverted). - domain_
key - A
web.allowed_domainsentry or a host, in the formdomains_name_hostcompares them in. - domains_
name_ host - Whether
ipis this machine or a network behind it rather than the public internet: unspecified, loopback, private, link-local, carrier-grade NAT, unique-local, site-local, multicast and the reserved blocks, and an IPv6 address that carries one of those IPv4 ones (mapped, compatible, NAT64, 6to4). - is_
internal_ address - The one answer to “may a destination chosen from outside reach this”, for a model-directed fetch and an HTTP hook alike.
- names_
loopback - Whether a
web.allowed_domainsentry names this machine’s loopback:localhostor a loopback address.