Home
last modified time | relevance | path

Searched refs:HeaderMap (Results 1 – 9 of 9) sorted by relevance

/tonic/tonic-web/src/
H A Dcall.rs7 use http::{header, HeaderMap, HeaderName, HeaderValue};
19 use http::{header::CONTENT_TYPE, HeaderMap};
26 pub(crate) fn is_grpc_web(headers: &HeaderMap) -> bool { in is_grpc_web()
33 fn content_type(headers: &HeaderMap) -> Option<&str> { in content_type()
70 trailers: Option<HeaderMap>,
380 fn encode_trailers(trailers: HeaderMap) -> Vec<u8> { in encode_trailers()
398 let mut map = HeaderMap::new(); in decode_trailers_frame()
524 let mut headers = HeaderMap::new(); in encoding_constructors()
537 let mut headers = HeaderMap::new(); in decode_trailers()
640 let mut expected = HeaderMap::new(); in decode_multiple_trailers()
[all …]
H A Dservice.rs6 use http::{header, HeaderMap, HeaderValue, Method, Request, Response, StatusCode, Version};
190 fn new(headers: &'a HeaderMap, method: &'a Method, version: Version) -> Self { in new() argument
/tonic/tonic/src/transport/service/
H A Dgrpc_timeout.rs2 use http::{HeaderMap, HeaderValue, Request};
104 headers: &HeaderMap<HeaderValue>, in try_parse_grpc_timeout()
156 let mut hm = HeaderMap::new(); in setup_map_try_parse()
/tonic/tonic/src/metadata/
H A Dmap.rs38 headers: http::HeaderMap,
41 impl AsRef<http::HeaderMap> for MetadataMap {
42 fn as_ref(&self) -> &http::HeaderMap { in as_ref() argument
47 impl AsMut<http::HeaderMap> for MetadataMap {
48 fn as_mut(&mut self) -> &mut http::HeaderMap { in as_mut() argument
245 pub fn from_headers(headers: http::HeaderMap) -> Self { in from_headers()
262 pub fn into_headers(self) -> http::HeaderMap { in into_headers() argument
266 pub(crate) fn into_sanitized_headers(mut self) -> http::HeaderMap { in into_sanitized_headers() argument
293 headers: http::HeaderMap::with_capacity(capacity), in with_capacity()
2504 let mut http_map = http::HeaderMap::new(); in test_from_headers_takes_http_headers()
/tonic/interop/src/
H A Dserver.rs3 use http::header::{HeaderMap, HeaderName};
204 .map(|v| HeaderMap::from_iter(std::iter::once((trailer_name, v)))); in call()
/tonic/tonic/src/
H A Dstatus.rs6 header::{HeaderMap, HeaderValue},
441 pub fn from_header_map(header_map: &HeaderMap) -> Option<Status> { in from_header_map()
510 pub(crate) fn to_header_map(&self) -> Result<HeaderMap, Self> { in to_header_map() argument
511 let mut header_map = HeaderMap::with_capacity(3 + self.metadata.len()); in to_header_map()
517 pub fn add_header(&self, header_map: &mut HeaderMap) -> Result<(), Self> { in add_header()
735 trailers: Option<&HeaderMap>, in infer_grpc_status() argument
/tonic/tonic/src/codec/
H A Dencode.rs7 use http::HeaderMap;
283 fn trailers(&mut self) -> Option<Result<HeaderMap, Status>> { in trailers() argument
H A Dcompression.rs109 map: &http::HeaderMap, in from_accept_encoding_header() argument
132 map: &http::HeaderMap, in from_encoding_header() argument
H A Ddecode.rs5 use http::{HeaderMap, StatusCode};
31 trailers: Option<HeaderMap>,