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

Method send

src/responder.rs:138–144  ·  view source on GitHub ↗

Puts the given text to the body and send it as html by default # Example ``` use octane::prelude::*; let mut app = Octane::new(); app.get( "/", route!( |req, res| { res.send("HELLO"); Flow::Stop } ), ); ```

(&mut self, body: T)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

default_headersMethod · 0.80

Tested by

no test coverage detected