Local-only request flow
The local flow never leaves your machine. It needs no server, token, or network;
routeup setup alone enables it.
The path
Section titled “The path”browser -> https://api.example-app.localhost -> local agent (terminates TLS, looks up the route) -> 127.0.0.1:8080 (your service) -> response back through the agentStep by step
Section titled “Step by step”- Resolution.
.localhostis reserved by RFC 6761, so browsers and resolvers short-circuit*.localhostto127.0.0.1with no DNS lookup and no/etc/hostsediting. - TLS. The request arrives at the local agent on port 443. The agent
terminates TLS using a certificate signed by the routeup local CA, which
setupadded to your trust store, so the browser shows no warning. - Routing. The agent matches the request’s
Hostagainst its in-memory route registry to find the target port. - Proxy. It reverse-proxies to the local target (e.g.
127.0.0.1:8080) and streams the response back.
Because the registry is keyed by host, a dotted route like api.example-app
works at any depth locally. The local CA mints a per-SNI leaf for the exact name.
See Local agent for the component, and Public exposure flow for what changes when a route is exposed.