MCPcopy Create free account
hub / github.com/aiscriptdev/aiscript / get_header

Method get_header

aiscript-runtime/src/endpoint.rs:227–238  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

225 }
226
227 fn get_header(&self) -> HashMap<String, Value> {
228 self.request
229 .headers()
230 .iter()
231 .map(|(name, value)| {
232 (
233 name.as_str().to_owned(),
234 Value::String(value.to_str().unwrap().to_owned()),
235 )
236 })
237 .collect()
238 }
239}
240
241impl Future for RequestProcessor {

Callers 1

pollMethod · 0.80

Calls 2

to_strMethod · 0.80
as_strMethod · 0.45

Tested by

no test coverage detected