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

Method get

src/responder.rs:116–118  ·  view source on GitHub ↗

Get the header value by name # Example ``` use octane::prelude::*; let mut app = Octane::new(); app.get( "/", route!(|req, res| { res.send("Hello, world"); assert_eq!(res.get("Content-Type"), Some(&"text/html".to_owned())); Flow::Stop }), ); ```

(&mut self, field: &'static str)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

default_headersMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected