Home
last modified time | relevance | path

Searched refs:header (Results 1 – 25 of 28) sorted by relevance

12

/tonic/tonic-web/src/
H A Dservice.rs211 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 Dcall.rs7 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 Dclient.rs1 use http::header::CONTENT_TYPE;
/tonic/tests/web/tests/
H A Dgrpc_web.rs7 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 Dmap.rs59 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 Dencoding.rs3 use http::header::HeaderValue;
18 use http::header::HeaderValue;
H A Dkey.rs2 use http::header::HeaderName;
22 pub(crate) inner: http::header::HeaderName,
H A Dvalue.rs7 use http::header::HeaderValue;
/tonic/tonic/src/
H A Dresponse.rs145 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 Dstatus.rs6 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 Drequest.rs449 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 Dclient.rs67 .header(http::header::UPGRADE, "h2c") in call()
H A Dserver.rs119 hyper::header::UPGRADE, in call()
120 http::header::HeaderValue::from_static("h2c"), in call()
/tonic/tests/integration_tests/
H A DCargo.toml24 tower-http = { version = "0.6", features = ["set-header", "trace"] }
/tonic/tonic/src/transport/channel/service/
H A Duser_agent.rs1 use http::{header::USER_AGENT, HeaderValue, Request};
/tonic/tests/integration_tests/tests/
H A Dclient_layer.rs1 use http::{header::HeaderName, HeaderValue};
/tonic/tonic/src/transport/service/
H A Dgrpc_timeout.rs52 (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 Dhelloworld.rs160 .header("grpc-status", "12") in call()
/tonic/interop/src/
H A Dserver.rs3 use http::header::{HeaderMap, HeaderName};
/tonic/tonic/src/service/
H A Dinterceptor.rs301 .header("user-agent", "test-tonic") in doesnt_remove_headers_from_requests()
/tonic/tonic/src/client/
H A Dgrpc.rs12 header::{HeaderValue, CONTENT_TYPE, TE},
/tonic/tonic/src/server/
H A Dgrpc.rs436 .insert(http::header::CONTENT_TYPE, GRPC_CONTENT_TYPE); in map_response()
/tonic/tonic-health/src/generated/
H A Dgrpc_health_v1.rs433 http::header::CONTENT_TYPE, in call()
/tonic/tonic-reflection/src/generated/
H A Dgrpc_reflection_v1.rs435 http::header::CONTENT_TYPE, in call()
H A Dgrpc_reflection_v1alpha.rs435 http::header::CONTENT_TYPE, in call()

12