Searched refs:USER_AGENT_KEY (Results 1 – 15 of 15) sorted by relevance
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()
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()
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()
491 Header userAgentHeader = new Header(GrpcUtil.USER_AGENT_KEY.name(), in addDefaultUserAgent()513 new Header(GrpcUtil.USER_AGENT_KEY.name(), in overrideDefaultUserAgent()
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()
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()
433 metadata.put(GrpcUtil.USER_AGENT_KEY, "bad agent"); in removeUserAgentFromApplicationHeaders()
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()
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()
295 Key<String> key = GrpcUtil.USER_AGENT_KEY; in removeIgnoresMissingValue()305 Key<String> key = GrpcUtil.USER_AGENT_KEY; in removeAllIgnoresMissingValue()
766 headers.put(GrpcUtil.USER_AGENT_KEY, "to-be-removed"); in reservedHeadersStripped()796 verify(builder).addHeader(GrpcUtil.USER_AGENT_KEY.name(), userAgent); in reservedHeadersStripped()
351 m.put(GrpcUtil.USER_AGENT_KEY, "batmobile"); in prepareHeaders_userAgentIgnored()355 assertThat(m.get(GrpcUtil.USER_AGENT_KEY)).isNotNull(); in prepareHeaders_userAgentIgnored()
137 public static final Metadata.Key<String> USER_AGENT_KEY = field in GrpcUtil
159 headers.put(GrpcUtil.USER_AGENT_KEY, userAgent);
META-INF/ META-INF/MANIFEST.MF io/ io/grpc/ io/ ...