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

Method redirect

src/responder.rs:383–387  ·  view source on GitHub ↗

Sets the Location header with a status code `302 FOUND` # Example ``` use octane::prelude::*; let mut app = Octane::new(); app.get( "/", route!(|req, res| { res.redirect("/").send("Taking you to home"); Flow::Stop }), ); ```

(&mut self, location: &str)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

statusMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected