Searched refs:postBytes (Results 1 – 2 of 2) sorted by relevance
118 byte[] postBytes = "FGHIJ".getBytes(Util.UTF_8); field in HttpOverSpdyTest126 connection.getOutputStream().write(postBytes); in noDefaultContentLengthOnStreamingPost()131 assertArrayEquals(postBytes, request.getBody().readByteArray()); in noDefaultContentLengthOnStreamingPost()139 connection.setRequestProperty("Content-Length", String.valueOf(postBytes.length)); in userSuppliedContentLengthHeader()141 connection.getOutputStream().write(postBytes); in userSuppliedContentLengthHeader()146 assertArrayEquals(postBytes, request.getBody().readByteArray()); in userSuppliedContentLengthHeader()147 assertEquals(postBytes.length, Integer.parseInt(request.getHeader("Content-Length"))); in userSuppliedContentLengthHeader()154 connection.setRequestProperty("Content-Length", String.valueOf(postBytes.length)); in closeAfterFlush()156 connection.getOutputStream().write(postBytes); // push bytes into SpdyDataOutputStream.buffer in closeAfterFlush()163 assertArrayEquals(postBytes, request.getBody().readByteArray()); in closeAfterFlush()[all …]
1062 byte[] postBytes = new byte[fbuf.remaining()]; in parseBody()1063 fbuf.get(postBytes); in parseBody()1064 String postLine = new String(postBytes).trim(); in parseBody()