Home
last modified time | relevance | path

Searched refs:USER_AGENT_KEY (Results 1 – 14 of 14) sorted by relevance

/external/grpc-grpc-java/okhttp/src/main/java/io/grpc/okhttp/
DHeaders.java20 import static io.grpc.internal.GrpcUtil.USER_AGENT_KEY;
58 headers.discardAll(GrpcUtil.USER_AGENT_KEY); in createRequestHeaders()
75 okhttpHeaders.add(new Header(GrpcUtil.USER_AGENT_KEY.name(), userAgent)); in createRequestHeaders()
103 && !USER_AGENT_KEY.name().equalsIgnoreCase(key); in isApplicationHeader()
/external/grpc-grpc-java/okhttp/src/test/java/io/grpc/okhttp/
DOkHttpClientStreamTest.java149 metaData.put(GrpcUtil.USER_AGENT_KEY, "misbehaving-application"); in start_userAgentRemoved()
158 .contains(new Header(GrpcUtil.USER_AGENT_KEY.name(), "good-application")); in start_userAgentRemoved()
164 metaData.put(GrpcUtil.USER_AGENT_KEY, "misbehaving-application"); in start_headerFieldOrder()
177 new Header(GrpcUtil.USER_AGENT_KEY.name(), "good-application"), in start_headerFieldOrder()
DHeadersTest.java39 metaData.put(GrpcUtil.USER_AGENT_KEY, "to-be-removed"); in createRequestHeaders_sanitizes()
63 assertThat(headers).contains(new Header(GrpcUtil.USER_AGENT_KEY.name(), userAgent)); in createRequestHeaders_sanitizes()
DOkHttpClientTransportTest.java491 Header userAgentHeader = new Header(GrpcUtil.USER_AGENT_KEY.name(), in addDefaultUserAgent()
513 new Header(GrpcUtil.USER_AGENT_KEY.name(), in overrideDefaultUserAgent()
/external/grpc-grpc-java/netty/src/test/java/io/grpc/netty/
DUtilsTest.java74 metaData.put(GrpcUtil.USER_AGENT_KEY, "to-be-removed"); in convertClientHeaders_sanitizes()
103 assertEquals(userAgent, headers.get(GrpcUtil.USER_AGENT_KEY.name()).toString()); in convertClientHeaders_sanitizes()
117 metaData.put(GrpcUtil.USER_AGENT_KEY, "to-be-removed"); in convertServerHeaders_sanitizes()
DNettyClientTransportTest.java25 import static io.grpc.internal.GrpcUtil.USER_AGENT_KEY;
164 assertEquals(GrpcUtil.getGrpcUserAgent("netty", null), headers.get(USER_AGENT_KEY)); in addDefaultUserAgent()
201 receivedHeaders.get(USER_AGENT_KEY)); in overrideDefaultUserAgent()
DNettyClientStreamTest.java433 metadata.put(GrpcUtil.USER_AGENT_KEY, "bad agent"); in removeUserAgentFromApplicationHeaders()
/external/grpc-grpc-java/netty/src/main/java/io/grpc/netty/
DUtils.java67 public static final AsciiString USER_AGENT = AsciiString.of(GrpcUtil.USER_AGENT_KEY.name());
121 headers.discardAll(GrpcUtil.USER_AGENT_KEY); in convertClientHeaders()
136 headers.discardAll(GrpcUtil.USER_AGENT_KEY); in convertServerHeaders()
/external/grpc-grpc-java/cronet/src/main/java/io/grpc/cronet/
DCronetClientStream.java21 import static io.grpc.internal.GrpcUtil.USER_AGENT_KEY;
321 && !USER_AGENT_KEY.name().equalsIgnoreCase(key) in isApplicationHeader()
329 builder.addHeader(USER_AGENT_KEY.name(), userAgent); in setGrpcHeaders()
/external/grpc-grpc-java/core/src/test/java/io/grpc/
DMetadataTest.java295 Key<String> key = GrpcUtil.USER_AGENT_KEY; in removeIgnoresMissingValue()
305 Key<String> key = GrpcUtil.USER_AGENT_KEY; in removeAllIgnoresMissingValue()
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DClientCallImplTest.java351 m.put(GrpcUtil.USER_AGENT_KEY, "batmobile"); in prepareHeaders_userAgentIgnored()
355 assertThat(m.get(GrpcUtil.USER_AGENT_KEY)).isNotNull(); in prepareHeaders_userAgentIgnored()
/external/grpc-grpc-java/cronet/src/test/java/io/grpc/cronet/
DCronetClientStreamTest.java766 headers.put(GrpcUtil.USER_AGENT_KEY, "to-be-removed"); in reservedHeadersStripped()
796 verify(builder).addHeader(GrpcUtil.USER_AGENT_KEY.name(), userAgent); in reservedHeadersStripped()
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DGrpcUtil.java137 public static final Metadata.Key<String> USER_AGENT_KEY = field in GrpcUtil
/external/grpc-grpc-java/core/src/main/java/io/grpc/inprocess/
DInProcessTransport.java159 headers.put(GrpcUtil.USER_AGENT_KEY, userAgent);