Searched refs:http2Headers (Results 1 – 5 of 5) sorted by relevance
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/ |
D | TransportFrameUtil.java | 94 public static byte[][] toRawSerializedHeaders(byte[][] http2Headers) { in toRawSerializedHeaders() argument 95 for (int i = 0; i < http2Headers.length; i += 2) { in toRawSerializedHeaders() 96 byte[] key = http2Headers[i]; in toRawSerializedHeaders() 97 byte[] value = http2Headers[i + 1]; in toRawSerializedHeaders() 98 http2Headers[i] = key; in toRawSerializedHeaders() 101 http2Headers[i + 1] = BaseEncoding.base64().decode(new String(value, US_ASCII)); in toRawSerializedHeaders() 107 return http2Headers; in toRawSerializedHeaders()
|
/external/grpc-grpc-java/netty/src/main/java/io/grpc/netty/ |
D | Utils.java | 78 public static Metadata convertHeaders(Http2Headers http2Headers) { in convertHeaders() argument 79 if (http2Headers instanceof GrpcHttp2InboundHeaders) { in convertHeaders() 80 GrpcHttp2InboundHeaders h = (GrpcHttp2InboundHeaders) http2Headers; in convertHeaders() 83 return InternalMetadata.newMetadata(convertHeadersToArray(http2Headers)); in convertHeaders() 86 private static byte[][] convertHeadersToArray(Http2Headers http2Headers) { in convertHeadersToArray() argument 89 byte[][] headerValues = new byte[http2Headers.size() * 2][]; in convertHeadersToArray() 91 for (Map.Entry<CharSequence, CharSequence> entry : http2Headers) { in convertHeadersToArray() 141 public static Metadata convertTrailers(Http2Headers http2Headers) { in convertTrailers() argument 142 if (http2Headers instanceof GrpcHttp2InboundHeaders) { in convertTrailers() 143 GrpcHttp2InboundHeaders h = (GrpcHttp2InboundHeaders) http2Headers; in convertTrailers() [all …]
|
D | NettyClientStream.java | 134 Http2Headers http2Headers = Utils.convertClientHeaders(headers, scheme, defaultPath, in writeHeaders() local 155 writeQueue.enqueue(new CreateStreamCommand(http2Headers, transportState(), get), in writeHeaders()
|
/external/grpc-grpc-java/okhttp/src/main/java/io/grpc/okhttp/ |
D | Utils.java | 42 public static Metadata convertHeaders(List<Header> http2Headers) { in convertHeaders() argument 43 return InternalMetadata.newMetadata(convertHeadersToArray(http2Headers)); in convertHeaders() 46 public static Metadata convertTrailers(List<Header> http2Headers) { in convertTrailers() argument 47 return InternalMetadata.newMetadata(convertHeadersToArray(http2Headers)); in convertTrailers() 50 private static byte[][] convertHeadersToArray(List<Header> http2Headers) { in convertHeadersToArray() argument 51 byte[][] headerValues = new byte[http2Headers.size() * 2][]; in convertHeadersToArray() 53 for (Header header : http2Headers) { in convertHeadersToArray()
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
D | TransportFrameUtilTest.java | 69 byte[][] http2Headers = TransportFrameUtil.toHttp2Headers(headers); in testToHttp2Headers() 76 assertEquals(answer.length, http2Headers.length); in testToHttp2Headers() 79 assertContains(http2Headers, answer[i], answer[i + 1]); in testToHttp2Headers() 94 byte[][] http2Headers = TransportFrameUtil.toHttp2Headers(headers); in testToAndFromHttp2Headers() 95 byte[][] rawSerialized = TransportFrameUtil.toRawSerializedHeaders(http2Headers); in testToAndFromHttp2Headers()
|