Skip to main content

Module server

Module server 

Source
Expand description

Local server used to communicate with the peer core. Handles external client connections (HTTP/WebSocket).

This module acts as the bridge between external clients and the Freenet node’s core logic. It parses ClientRequests, sends them to the main node event loop (node::Node) via an internal channel, and forwards HostResponses back to the clients.

See ../architecture.md for its place in the overall architecture.

Modules§

local_node

Structs§

AttestedContract
Represents an attested contract entry with metadata for token expiration.
WebApp

Functions§

serve_gateway
serve_gateway_for_test
Serves the gateway and returns the concrete types (for integration testing). This allows tests to access internal state like the attested_contracts map.

Type Aliases§

AttestedContractMap
Maps authentication tokens to attested contract metadata.