Home
last modified time | relevance | path

Searched refs:postBytes (Results 1 – 2 of 2) sorted by relevance

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
DHttpOverSpdyTest.java118 byte[] postBytes = "FGHIJ".getBytes(Util.UTF_8); field in HttpOverSpdyTest
126 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 …]
/external/nanohttpd/core/src/main/java/fi/iki/elonen/
DNanoHTTPD.java1062 byte[] postBytes = new byte[fbuf.remaining()]; in parseBody()
1063 fbuf.get(postBytes); in parseBody()
1064 String postLine = new String(postBytes).trim(); in parseBody()