(int streamId, int streamDependencyId, int weight)
| 932 | |
| 933 | |
| 934 | void sendPriority(int streamId, int streamDependencyId, int weight) throws IOException { |
| 935 | byte[] priorityFrame = new byte[14]; |
| 936 | // length |
| 937 | ByteUtil.setThreeBytes(priorityFrame, 0, 5); |
| 938 | // type |
| 939 | priorityFrame[3] = FrameType.PRIORITY.getIdByte(); |
| 940 | // No flags |
| 941 | // Stream ID |
| 942 | ByteUtil.set31Bits(priorityFrame, 5, streamId); |
| 943 | |
| 944 | // Payload |
| 945 | ByteUtil.set31Bits(priorityFrame, 9, streamDependencyId); |
| 946 | setOneBytes(priorityFrame, 13, weight); |
| 947 | |
| 948 | os.write(priorityFrame); |
| 949 | os.flush(); |
| 950 | } |
| 951 | |
| 952 | |
| 953 | void sendPriorityUpdate(int streamId, int urgency, boolean incremental) throws IOException { |
no test coverage detected