MCPcopy Create free account
hub / github.com/bajrangCoder/setu / new

Method new

src/views/response_view.rs:63–82  ·  view source on GitHub ↗
(response: Entity<ResponseEntity>, cx: &mut Context<Self>)

Source from the content-addressed store, hash-verified

61 [
62 Self::General,
63 Self::Cache,
64 Self::Cors,
65 Self::Security,
66 Self::Other,
67 ]
68 }
69}
70
71fn classify_header(name: &str) -> HeaderCategory {
72 let n = name.to_ascii_lowercase();
73
74 if n.starts_with("access-control-") {
75 return HeaderCategory::Cors;
76 }
77
78 if matches!(
79 n.as_str(),
80 "cache-control"
81 | "etag"
82 | "age"
83 | "expires"
84 | "last-modified"
85 | "vary"

Callers 2

ensure_body_displayMethod · 0.45
ensure_raw_displayMethod · 0.45

Calls 1

focus_handleMethod · 0.45

Tested by

no test coverage detected