Lines Matching defs:response
94 public void enqueue(MockResponse response) {
95 responseQueue.add(response);
169 MockResponse response = computeResponse(request);
170 writeResponse(out, response);
171 if (response.shouldCloseConnectionAfter()) {
268 * Returns a response to satisfy {@code request}.
277 private void writeResponse(OutputStream out, MockResponse response) throws IOException {
278 out.write((response.getStatus() + "\r\n").getBytes(ASCII));
279 boolean doCloseConnectionAfterHeader = (response.getCloseConnectionAfterHeader() != null);
282 String closeConnectionAfterHeader = response.getCloseConnectionAfterHeader();
283 for (String header : response.getHeaders()) {
296 InputStream body = response.getBody();
302 boolean shouldPause = response.getShouldPause();
303 boolean shouldClose = response.getShouldClose();
304 int pause = response.getPauseConnectionAfterXBytes();
305 int close = response.getCloseConnectionAfterXBytes();