MCPcopy Create free account
hub / github.com/OctaneWeb/Octane / Octane

Class Octane

src/server.rs:47–51  ·  view source on GitHub ↗

The Octane server # Example ```no_run use octane::prelude::*; #[tokio::main] async fn main() { let mut app = Octane::new(); app.get( "/", route!( |req, res| { res.send("Hello, World"); Flow::Stop } ), ); let port = 8080; app.listen(port, || { println!("Server started on port {}", port); }).await.expect("Cannot establish connection"); } ```

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected