Searched defs:body (Results 1 - 4 of 4) sorted by relevance

/libcore/support/src/test/java/tests/http/
H A DRecordedRequest.java29 private final byte[] body; field in class:RecordedRequest
33 int bodySize, byte[] body, int sequenceNumber) {
38 this.body = body;
51 * Returns the sizes of the chunks of this request's body, or an empty list
52 * if the request's body was empty or unchunked.
59 * Returns the total size of the body of this POST request (before
67 * Returns the body of this POST request. This may be truncated.
70 return body;
32 RecordedRequest(String requestLine, List<String> headers, List<Integer> chunkSizes, int bodySize, byte[] body, int sequenceNumber) argument
H A DMockResponse.java37 private byte[] body = EMPTY_BODY; field in class:MockResponse
92 return body;
95 public MockResponse setBody(byte[] body) { argument
96 if (this.body == EMPTY_BODY) {
99 this.headers.add("Content-Length: " + body.length);
100 this.body = body;
104 public MockResponse setBody(String body) { argument
106 return setBody(body.getBytes(ASCII));
112 public MockResponse setChunkedBody(byte[] body, in argument
131 setChunkedBody(String body, int maxChunkSize) argument
[all...]
/libcore/luni/src/main/java/libcore/net/http/
H A DHttpResponseCache.java175 * with the headers from {@code httpConnection}. The cached response body is
267 private OutputStream body; field in class:HttpResponseCache.CacheRequestImpl
272 this.body = new FilterOutputStream(cacheOut) {
310 return body;
507 * Returns an input stream that reads the body of a snapshot, closing the
H A DHttpEngine.java55 * sendRequest() has been called the request body can be written to if
58 * response has been read the response headers and body can be read.
59 * All responses have a response body input stream, though in some
85 * body. When the headers and body can be sent in a single write, the
121 * This stream buffers the request headers and the request body when their
165 * body. If it fails, these be closed and set to null.
210 * writing the request body if it exists.
345 // request body was already initialized by the predecessor HTTP engine
361 * @param body th
364 setResponse(ResponseHeaders headers, InputStream body) argument
[all...]

Completed in 85 milliseconds