Searched refs:USER_AGENT_KEY (Results 1 – 14 of 14) sorted by relevance
/external/grpc-grpc-java/okhttp/src/main/java/io/grpc/okhttp/ |
D | Headers.java | 20 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/ |
D | OkHttpClientStreamTest.java | 149 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()
|
D | HeadersTest.java | 39 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()
|
D | OkHttpClientTransportTest.java | 491 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/ |
D | UtilsTest.java | 74 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()
|
D | NettyClientTransportTest.java | 25 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()
|
D | NettyClientStreamTest.java | 433 metadata.put(GrpcUtil.USER_AGENT_KEY, "bad agent"); in removeUserAgentFromApplicationHeaders()
|
/external/grpc-grpc-java/netty/src/main/java/io/grpc/netty/ |
D | Utils.java | 67 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/ |
D | CronetClientStream.java | 21 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/ |
D | MetadataTest.java | 295 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/ |
D | ClientCallImplTest.java | 351 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/ |
D | CronetClientStreamTest.java | 766 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/ |
D | GrpcUtil.java | 137 public static final Metadata.Key<String> USER_AGENT_KEY = field in GrpcUtil
|
/external/grpc-grpc-java/core/src/main/java/io/grpc/inprocess/ |
D | InProcessTransport.java | 159 headers.put(GrpcUtil.USER_AGENT_KEY, userAgent);
|