| /tonic/tonic-web/src/ |
| H A D | service.rs | 211 req.headers_mut().remove(header::CONTENT_LENGTH); in coerce_request() 214 .insert(header::CONTENT_TYPE, GRPC_CONTENT_TYPE); in coerce_request() 220 header::ACCEPT_ENCODING, in coerce_request() 237 header::CONTENT_TYPE, in coerce_response() 248 use http::header::{ 294 .header(CONTENT_TYPE, GRPC_WEB) in request() 295 .header(ORIGIN, "http://example.com") in request() 375 .header(ORIGIN, "http://example.com") in request() 397 .header(CONTENT_TYPE, GRPC_CONTENT_TYPE) in request() 417 .header(CONTENT_TYPE, GRPC_CONTENT_TYPE) in h1_is_err() [all …]
|
| H A D | call.rs | 7 use http::{header, HeaderMap, HeaderName, HeaderValue}; 19 use http::{header::CONTENT_TYPE, HeaderMap}; 353 Self::from_header(headers.get(header::CONTENT_TYPE)) in from_content_type() 357 Self::from_header(headers.get(header::ACCEPT)) in from_accept() 474 let header = temp_buf.get_u8(); in find_trailers() localVariable 476 if header == GRPC_WEB_TRAILERS_BIT { in find_trailers() 480 if !(header == 0 || header == 1) { in find_trailers() 483 header in find_trailers() 527 headers.insert(header::CONTENT_TYPE, case.0.parse().unwrap()); in encoding_constructors() 528 headers.insert(header::ACCEPT, case.0.parse().unwrap()); in encoding_constructors()
|
| H A D | client.rs | 1 use http::header::CONTENT_TYPE;
|
| /tonic/tests/web/tests/ |
| H A D | grpc_web.rs | 7 use hyper::http::{header, StatusCode}; 29 let content_type = res.headers().get(header::CONTENT_TYPE).unwrap().clone(); in binary_request() 52 let content_type = res.headers().get(header::CONTENT_TYPE).unwrap().clone(); in text_request() 112 use header::{ACCEPT, CONTENT_TYPE, ORIGIN}; in build_request() 128 .header(CONTENT_TYPE, format!("application/{}", content_type)) in build_request() 129 .header(ORIGIN, "http://example.com") in build_request() 130 .header(ACCEPT, format!("application/{}", accept)) in build_request()
|
| /tonic/tonic/src/metadata/ |
| H A D | map.rs | 59 inner: http::header::Iter<'a, http::header::HeaderValue>, 88 inner: http::header::IterMut<'a, http::header::HeaderValue>, 94 inner: http::header::ValueDrain<'a, http::header::HeaderValue>, 104 inner: http::header::Keys<'a, http::header::HeaderValue>, 125 inner: http::header::Iter<'a, http::header::HeaderValue>, 145 inner: http::header::IterMut<'a, http::header::HeaderValue>, 161 inner: Option<http::header::ValueIter<'a, http::header::HeaderValue>>, 168 inner: http::header::ValueIterMut<'a, http::header::HeaderValue>, 178 inner: Option<http::header::GetAll<'a, http::header::HeaderValue>>, 198 inner: http::header::VacantEntry<'a, http::header::HeaderValue>, [all …]
|
| H A D | encoding.rs | 3 use http::header::HeaderValue; 18 use http::header::HeaderValue;
|
| H A D | key.rs | 2 use http::header::HeaderName; 22 pub(crate) inner: http::header::HeaderName,
|
| H A D | value.rs | 7 use http::header::HeaderValue;
|
| /tonic/tonic/src/ |
| H A D | response.rs | 145 for header in &MetadataMap::GRPC_RESERVED_HEADERS { in reserved_headers_are_excluded() 147 MetadataKey::unchecked_from_header_name(header.clone()), in reserved_headers_are_excluded()
|
| H A D | status.rs | 6 header::{HeaderMap, HeaderValue}, 445 Some(header) => percent_decode(header.as_bytes()) in from_header_map() 452 Some(header) => crate::util::base64::STANDARD in from_header_map() 453 .decode(header.as_bytes()) in from_header_map() 582 .insert(http::header::CONTENT_TYPE, GRPC_CONTENT_TYPE); in into_http()
|
| H A D | request.rs | 449 for header in &MetadataMap::GRPC_RESERVED_HEADERS { in reserved_headers_are_excluded() 451 MetadataKey::unchecked_from_header_name(header.clone()), in reserved_headers_are_excluded()
|
| /tonic/examples/src/h2c/ |
| H A D | client.rs | 67 .header(http::header::UPGRADE, "h2c") in call()
|
| H A D | server.rs | 119 hyper::header::UPGRADE, in call() 120 http::header::HeaderValue::from_static("h2c"), in call()
|
| /tonic/tests/integration_tests/ |
| H A D | Cargo.toml | 24 tower-http = { version = "0.6", features = ["set-header", "trace"] }
|
| /tonic/tonic/src/transport/channel/service/ |
| H A D | user_agent.rs | 1 use http::{header::USER_AGENT, HeaderValue, Request};
|
| /tonic/tests/integration_tests/tests/ |
| H A D | client_layer.rs | 1 use http::{header::HeaderName, HeaderValue};
|
| /tonic/tonic/src/transport/service/ |
| H A D | grpc_timeout.rs | 52 (Some(header), Some(server)) => { in call() 53 let shorter_duration = std::cmp::min(header, server); in call()
|
| /tonic/tonic/benches-disabled/benchmarks/compiled_protos/ |
| H A D | helloworld.rs | 160 .header("grpc-status", "12") in call()
|
| /tonic/interop/src/ |
| H A D | server.rs | 3 use http::header::{HeaderMap, HeaderName};
|
| /tonic/tonic/src/service/ |
| H A D | interceptor.rs | 301 .header("user-agent", "test-tonic") in doesnt_remove_headers_from_requests()
|
| /tonic/tonic/src/client/ |
| H A D | grpc.rs | 12 header::{HeaderValue, CONTENT_TYPE, TE},
|
| /tonic/tonic/src/server/ |
| H A D | grpc.rs | 436 .insert(http::header::CONTENT_TYPE, GRPC_CONTENT_TYPE); in map_response()
|
| /tonic/tonic-health/src/generated/ |
| H A D | grpc_health_v1.rs | 433 http::header::CONTENT_TYPE, in call()
|
| /tonic/tonic-reflection/src/generated/ |
| H A D | grpc_reflection_v1.rs | 435 http::header::CONTENT_TYPE, in call()
|
| H A D | grpc_reflection_v1alpha.rs | 435 http::header::CONTENT_TYPE, in call()
|