Home
last modified time | relevance | path

Searched refs:from_static (Results 1 – 25 of 35) sorted by relevance

12

/tonic/tonic/src/metadata/
H A Dvalue.rs71 pub fn from_static(src: &'static str) -> Self { in from_static() method
73 inner: VE::from_static(src), in from_static()
836 assert_eq!(Amv::from_static("abc"), Amv::from_static("abc")); in test_value_eq_value()
837 assert_ne!(Amv::from_static("abc"), Amv::from_static("ABC")); in test_value_eq_value()
844 Bmv::from_static("SGVsbG8hIQ=="), in test_value_eq_value()
845 Bmv::from_static("SGVsbG8hIQ") in test_value_eq_value()
861 assert_eq!(Amv::from_static("abc"), "abc"); in test_value_eq_str()
905 let value1 = Amv::from_static("abc"); in test_ascii_value_hash()
906 let value2 = Amv::from_static("abc"); in test_ascii_value_hash()
910 let value1 = Amv::from_static("abc"); in test_ascii_value_hash()
[all …]
H A Dencoding.rs32 fn from_static(value: &'static str) -> HeaderValue; in from_static() method
93 fn from_static(value: &'static str) -> HeaderValue { in from_static() method
94 HeaderValue::from_static(value) in from_static()
140 fn from_static(value: &'static str) -> HeaderValue { in from_static() method
147 HeaderValue::from_maybe_shared_unchecked(Bytes::from_static(value.as_ref())) in from_static()
H A Dmod.rs38 pub const GRPC_CONTENT_TYPE: HeaderValue = HeaderValue::from_static("application/grpc");
H A Dkey.rs102 pub fn from_static(src: &'static str) -> Self { in from_static() method
103 let name = HeaderName::from_static(src); in from_static()
H A Dmap.rs218 HeaderName::from_static("te"),
219 HeaderName::from_static("user-agent"),
220 HeaderName::from_static("content-type"),
221 HeaderName::from_static("grpc-message"),
222 HeaderName::from_static("grpc-message-type"),
223 HeaderName::from_static("grpc-status"),
2096 let key = MetadataKey::<VE>::from_static(self); in insert()
2106 let key = MetadataKey::<VE>::from_static(self); in append()
/tonic/tonic/src/transport/channel/service/
H A Duser_agent.rs23 .unwrap_or_else(|| HeaderValue::from_static(TONIC_USER_AGENT)); in new()
59 HeaderValue::from_static(TONIC_USER_AGENT) in sets_default_if_no_custom_user_agent()
66 UserAgent::new(Svc, Some(HeaderValue::from_static("Greeter 1.1"))).user_agent, in prepends_custom_user_agent_to_default()
/tonic/examples/src/interceptor/
H A Dclient.rs16 let channel = Endpoint::from_static("http://[::1]:50051") in main()
53 let channel = Endpoint::from_static("http://[::1]:50051") in using_named_interceptor()
67 let channel = Endpoint::from_static("http://[::1]:50051") in using_function_pointer_interceptro()
/tonic/tonic/src/
H A Dstatus.rs820 Code::Ok => HeaderValue::from_static("0"), in to_header_value()
821 Code::Cancelled => HeaderValue::from_static("1"), in to_header_value()
822 Code::Unknown => HeaderValue::from_static("2"), in to_header_value()
825 Code::NotFound => HeaderValue::from_static("5"), in to_header_value()
826 Code::AlreadyExists => HeaderValue::from_static("6"), in to_header_value()
830 Code::Aborted => HeaderValue::from_static("10"), in to_header_value()
831 Code::OutOfRange => HeaderValue::from_static("11"), in to_header_value()
832 Code::Unimplemented => HeaderValue::from_static("12"), in to_header_value()
833 Code::Internal => HeaderValue::from_static("13"), in to_header_value()
834 Code::Unavailable => HeaderValue::from_static("14"), in to_header_value()
[all …]
H A Dresponse.rs148 MetadataValue::from_static("invalid"), in reserved_headers_are_excluded()
/tonic/examples/src/dynamic_load_balance/
H A Dclient.rs17 let e1 = Endpoint::from_static("http://[::1]:50051"); in main()
18 let e2 = Endpoint::from_static("http://[::1]:50052"); in main()
50 let e3 = Endpoint::from_static("http://[::1]:50051"); in main()
/tonic/examples/src/tls_rustls/
H A Dclient.rs50 .map_request(|_| Uri::from_static("https://[::1]:50051")) in main()
57 let uri = Uri::from_static("https://example.com"); in main()
/tonic/tonic/src/codec/
H A Dcompression.rs172 .unwrap_or_else(|| MetadataValue::from_static("identity")); in from_encoding_header()
195 http::HeaderValue::from_static(self.as_str()) in into_header_value()
329 const GZIP: HeaderValue = HeaderValue::from_static("gzip,identity"); in convert_gzip_into_header_value()
347 const ZSTD: HeaderValue = HeaderValue::from_static("zstd,identity"); in convert_zstd_into_header_value()
375 HeaderValue::from_static("gzip,deflate,zstd,identity"), in convert_compression_encodings_into_header_value()
388 HeaderValue::from_static("zstd,deflate,gzip,identity"), in convert_compression_encodings_into_header_value()
/tonic/tests/integration_tests/tests/
H A Dclient_layer.rs51 HeaderName::from_static("x-test"), in connect_supports_standard_tower_layers()
52 HeaderValue::from_static("test-header"), in connect_supports_standard_tower_layers()
/tonic/examples/src/load_balance/
H A Dclient.rs12 .map(|a| Channel::from_static(a)); in main()
/tonic/examples/src/authentication/
H A Dclient.rs10 let channel = Channel::from_static("http://[::1]:50051").connect().await?; in main()
/tonic/examples/src/tls/
H A Dclient.rs18 let channel = Channel::from_static("https://[::1]:50051") in main()
/tonic/examples/src/multiplex/
H A Dclient.rs15 let channel = Endpoint::from_static("http://[::1]:50051") in main()
/tonic/examples/src/tls_client_auth/
H A Dclient.rs22 let channel = Channel::from_static("https://[::1]:50051") in main()
/tonic/examples/src/gcp/
H A Dclient.rs34 let channel = Channel::from_static(ENDPOINT) in main()
/tonic/tonic-build/src/
H A Dclient.rs244 let path = http::uri::PathAndQuery::from_static(#path); in generate_unary()
275 let path = http::uri::PathAndQuery::from_static(#path); in generate_server_streaming()
306 let path = http::uri::PathAndQuery::from_static(#path); in generate_client_streaming()
337 let path = http::uri::PathAndQuery::from_static(#path); in generate_streaming()
/tonic/tonic-web/src/
H A Dservice.rs217 .insert(header::TE, HeaderValue::from_static("trailers")); in coerce_request()
221 HeaderValue::from_static("identity,deflate,gzip"), in coerce_request()
238 HeaderValue::from_static(encoding.to_content_type()), in coerce_response()
360 .insert(CONTENT_TYPE, HeaderValue::from_static(ct)); in grpc_web_content_types()
/tonic/examples/src/tower/
H A Dclient.rs14 let channel = Channel::from_static("http://[::1]:50051").connect().await?; in main()
/tonic/tonic/src/transport/channel/
H A Dmod.rs89 pub fn from_static(s: &'static str) -> Endpoint { in from_static() method
90 let uri = Uri::from_static(s); in from_static()
H A Dendpoint.rs71 pub fn from_static(s: &'static str) -> Self { in from_static() method
72 let uri = Uri::from_static(s); in from_static()
/tonic/examples/src/h2c/
H A Dclient.rs13 let origin = Uri::from_static("http://[::1]:50051"); in main()

12