Skip to main content

Module web

Module web 

Source
Expand description

Web tools: web_fetch and the configured-backend web_search.

web_fetch refuses loopback, private, link-local, and other non-public addresses unless the user allows them. Host names are resolved once by a checking resolver whose addresses are the only ones the client connects to, so a name cannot be rebound to a local address between the check and the connection. IP-literal URLs, including redirect targets, are checked before any request.

Structs§

WebToolsConfig
Web tool settings resolved from the user’s configuration.

Enums§

SearchBackend
A search service that SCV queries itself. Provider-hosted search is configured on the provider instead and needs no SCV tool.

Functions§

register
Registers web_fetch, and web_search when a search backend is configured.