Skip to main content

run_http

Function run_http 

Source
pub async fn run_http(port: u16) -> Result<(), Box<dyn Error>>
Expand description

Start the HTTP server on the given port.

ยงErrors

Returns an error when the socket cannot be bound or the HTTP server exits with a transport-level failure.