Searched refs:extraHeaders (Results 1 – 1 of 1) sorted by relevance
48 public static <T extends AbstractStub<T>> T attachHeaders(T stub, Metadata extraHeaders) { in attachHeaders() argument49 return stub.withInterceptors(newAttachHeadersInterceptor(extraHeaders)); in attachHeaders()58 public static ClientInterceptor newAttachHeadersInterceptor(Metadata extraHeaders) { in newAttachHeadersInterceptor() argument59 return new HeaderAttachingClientInterceptor(extraHeaders); in newAttachHeadersInterceptor()64 private final Metadata extraHeaders; field in MetadataUtils.HeaderAttachingClientInterceptor67 HeaderAttachingClientInterceptor(Metadata extraHeaders) { in HeaderAttachingClientInterceptor() argument68 this.extraHeaders = checkNotNull(extraHeaders, extraHeaders); in HeaderAttachingClientInterceptor()87 headers.merge(extraHeaders); in start()