Expand description
The network capability on Linux, macOS and the web.
One async API on every target, every future Send, so an app hands requests
to tilo_rt::app() instead of running a blocking client on a thread of its
own. What a target cannot provide is an Unsupported error at run time,
never a missing item.
Modules§
- address
- One judge of whether an address is on the public internet, for every
caller that keeps a request off this machine and its network: the fetch
proxy (
crate::proxy) and the guard of a page’s fetch both ask it, and neither keeps a list of its own. - header
- HTTP header types
- proxy
- The host’s fetch proxy: how a page reads cross-origin responses that the
site does not allow it to (CORS). The workspace host the page is admitted
to offers one: [
host] is its implementation, whichtilo-serverserves and, in development,tilo-fetch-proxy. - status
- Whether the device is online, and whether its connection is metered.
Structs§
- Bytes
- A cheaply cloneable and sliceable chunk of contiguous memory.
- Header
Map - A specialized multimap for header names and values.
- Header
Name - Represents an HTTP header field name
- Header
Value - Represents an HTTP header field value.
- Method
- The Request Method (VERB)
- Status
Code - An HTTP status code (
status-codein RFC 9110 et al.). - Url
- A parsed URL record.
Enums§
Functions§
- availability
- available
- client_
config - client_
config_ also_ trusting - A test’s own certificates (DER), trusted as a chain root and as that exact
server certificate; production trust is
client_configalone. - client_
config_ with_ roots - crypto_
provider - install_
crypto_ provider - Install
crypto_provideras the process default: libraries that readCryptoProvider::get_default()need this before they build a client. Repeated calls are harmless. - lacks_
authorities - Why this program can check no server’s identity, where the system’s trust
bundle gives it no certificate authority: which file that is and what is
wrong with it.
Nonewhere it has some, and on a system whose own store is asked instead of a file. - loopback_
name - Whether
nameis a name of this machine:localhostand every name under it, which a browser resolves to loopback itself. The local stack serves the site astilo.localhost. - pinned_
client_ config - Trusts the server certificate
acceptadmits, given its DER, instead of a chain to a root. The handshake signature is still verified, so the server holds the admitted certificate’s key. - secure_
endpoint - Whether
urlis a credential-free endpoint on asecure_origin:https, or plainhttpon this machine, with a host and neither username nor password. - secure_
origin - Whether
urlis on an origin browsers treat as secure:https, or plainhttpon this machine, which never leaves it. - server_
verifier_ also_ trusting - Verifies as
client_configdoes, and also trusts each ofextra(DER) as a chain root and as that exact server certificate, so a self-signed server (which a chain check does not take as its own root) verifies. Verification stays on: a server must still present one of these or a chain to a trusted root, for its name, and hold its key. - system_
roots - Roots from the Tilo system trust bundle. An unreadable bundle yields an empty store, so verification fails closed.