(ByteBuffer target, String val)
| 257 | } |
| 258 | |
| 259 | private void writeValueString(ByteBuffer target, String val) { |
| 260 | target.put((byte) 0); // to use encodeInteger we need to place the first byte in the buffer. |
| 261 | Hpack.encodeInteger(target, val.length(), 7); |
| 262 | for (int j = 0; j < val.length(); ++j) { |
| 263 | target.put((byte) val.charAt(j)); |
| 264 | } |
| 265 | } |
| 266 | |
| 267 | private void addToDynamicTable(String headerName, String val) { |
| 268 | int pos = entryPositionCounter++; |
no test coverage detected