MCPcopy Create free account
hub / github.com/apache/dubbo-rust / into_headers

Method into_headers

dubbo/src/invocation.rs:198–208  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

196 }
197
198 pub fn into_headers(&self) -> http::HeaderMap {
199 let mut header = http::HeaderMap::new();
200 for (k, v) in self.inner.clone().into_iter() {
201 header.insert(
202 http::header::HeaderName::from_str(k.as_str()).unwrap(),
203 http::HeaderValue::from_str(v.as_str()).unwrap(),
204 );
205 }
206
207 header
208 }
209}
210
211pub trait Invocation {

Callers 7

into_httpMethod · 0.80
unaryMethod · 0.80
bidi_streamingMethod · 0.80
client_streamingMethod · 0.80
server_streamingMethod · 0.80
callMethod · 0.80
callMethod · 0.80

Calls 3

insertMethod · 0.80
cloneMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected