run_http_server

Function run_http_server 

Source
pub async fn run_http_server() -> Result<(), Error>
Expand description

Runs a barebones HTTP server that serves the authorized_keys on port 9797. This is not using any third party code so as to avoid increasing binary size on devices. As such, the verification of the incoming request is also very barebones. We read maximum 1024kb of a request (so we expect something small), and only expect a GET / as a request.