HomeSort by relevance Sort by last modified time
    Searched refs:requestBody (Results 1 - 25 of 27) sorted by null

1 2

  /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
MultipartBuilderTest.java 41 RequestBody requestBody = new MultipartBuilder("123")
42 .addPart(RequestBody.create(null, "Hello, World!"))
45 assertEquals("multipart/mixed; boundary=123", requestBody.contentType().toString());
48 requestBody.writeTo(buffer);
49 assertEquals(53, requestBody.contentLength());
50 assertEquals(buffer.size(), requestBody.contentLength());
70 RequestBody requestBody = new MultipartBuilder("123")
71 .addPart(RequestBody.create(null, "Quick")
    [all...]
URLConnectionTest.java     [all...]
  /frameworks/volley/src/main/java/com/android/volley/toolbox/
JsonRequest.java 51 public JsonRequest(String url, String requestBody, Listener<T> listener,
53 this(Method.DEPRECATED_GET_OR_POST, url, requestBody, listener, errorListener);
56 public JsonRequest(int method, String url, String requestBody, Listener<T> listener,
60 mRequestBody = requestBody;
  /external/oauth/core/src/main/java/net/oauth/client/httpclient4/
HttpMethodResponse.java 51 public HttpMethodResponse(HttpRequestBase request, HttpResponse response, byte[] requestBody,
57 this.requestBody = requestBody;
64 private final byte[] requestBody;
115 if (requestBody != null) {
116 request.append(new String(requestBody, requestEncoding));
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
Transport.java 43 void writeRequestBody(RetryableSink requestBody) throws IOException;
HttpTransport.java 55 @Override public void writeRequestBody(RetryableSink requestBody) throws IOException {
56 httpConnection.writeRequestBody(requestBody);
FramedTransport.java 95 @Override public void writeRequestBody(RetryableSink requestBody) throws IOException {
96 requestBody.writeToSocket(stream.getSink());
HttpConnection.java 237 public void writeRequestBody(RetryableSink requestBody) throws IOException {
240 requestBody.writeToSocket(sink);
HttpEngine.java 374 Sink requestBody = getRequestBody();
375 return requestBody != null
376 ? (bufferedRequestBody = Okio.buffer(requestBody))
    [all...]
  /external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/
PostMultipart.java 22 import com.squareup.okhttp.RequestBody;
40 RequestBody requestBody = new MultipartBuilder()
44 RequestBody.create(MEDIA_TYPE_PNG, new File("website/static/logo-square.png")))
50 .post(requestBody)
PostStreaming.java 21 import com.squareup.okhttp.RequestBody;
33 RequestBody requestBody = new RequestBody() {
57 .post(requestBody)
RequestBodyCompression.java 23 import com.squareup.okhttp.RequestBody;
48 Map<String, String> requestBody = new LinkedHashMap<>();
49 requestBody.put("longUrl", "https://publicobject.com/2014/12/04/html-formatting-javadocs/");
50 RequestBody jsonRequestBody = RequestBody.create(
51 MEDIA_TYPE_JSON, new Gson().toJson(requestBody));
82 private RequestBody gzip(final RequestBody body) {
83 return new RequestBody() {
  /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DisconnectTest.java 86 OutputStream requestBody = connection.getOutputStream();
90 requestBody.write(buffer);
91 requestBody.flush();
ThreadInterruptTest.java 88 OutputStream requestBody = connection.getOutputStream();
92 requestBody.write(buffer);
93 requestBody.flush();
  /libcore/support/src/test/java/tests/http/
MockWebServer.java 360 TruncatingOutputStream requestBody = new TruncatingOutputStream();
364 transfer(contentLength, in, requestBody);
374 transfer(chunkSize, in, requestBody);
394 requestBody.numBytesReceived, requestBody.toByteArray(), sequenceNumber);
  /external/okhttp/okhttp-urlconnection/src/main/java/com/squareup/okhttp/internal/huc/
HttpURLConnectionImpl.java 27 import com.squareup.okhttp.RequestBody;
84 private static final RequestBody EMPTY_REQUEST_BODY = RequestBody.create(null, new byte[0]);
338 private HttpEngine newHttpEngine(String method, Connection connection, RetryableSink requestBody,
341 RequestBody placeholderBody = HttpMethod.requiresRequestBody(method)
384 requestBody, priorResponse);
428 Sink requestBody = httpEngine.getRequestBody();
430 requestBody = null;
433 if (requestBody != null && !(requestBody instanceof RetryableSink))
    [all...]
  /external/nist-sip/java/gov/nist/javax/sip/clientauthutils/
AuthenticationHelperImpl.java 287 * @param requestBody the body of the request.
295 private AuthorizationHeader getAuthorization(String method, String uri, String requestBody,
310 method, uri, requestBody, qop,sipStack.getStackLogger());// jvb changed
354 * @param requestBody the body of the request.
362 private AuthorizationHeader getAuthorization(String method, String uri, String requestBody,
376 method, uri, requestBody, qop,sipStack.getStackLogger());// jvb changed
  /external/mockwebserver/src/main/java/com/google/mockwebserver/
MockWebServer.java 469 TruncatingOutputStream requestBody = new TruncatingOutputStream();
474 throttledTransfer(throttlePolicy, in, requestBody, contentLength);
484 throttledTransfer(throttlePolicy, in, requestBody, chunkSize);
504 return new RecordedRequest(request, headers, chunkSizes, requestBody.numBytesReceived,
505 requestBody.toByteArray(), sequenceNumber, socket);
  /external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/
MockWebServer.java 627 TruncatingBuffer requestBody = new TruncatingBuffer(bodyLimit);
632 throttledTransfer(policy, socket, source, Okio.buffer(requestBody), contentLength, true);
642 throttledTransfer(policy, socket, source, Okio.buffer(requestBody), chunkSize, true);
652 return new RecordedRequest(request, headers.build(), chunkSizes, requestBody.receivedByteCount,
653 requestBody.buffer, sequenceNumber, socket);
    [all...]
  /libcore/luni/src/test/java/libcore/java/net/
URLConnectionTest.java     [all...]
  /external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/
ResponseCacheTest.java 726 OutputStream requestBody = connection.getOutputStream();
727 requestBody.write('x');
728 requestBody.close();
    [all...]
  /external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/
UrlConnectionCacheTest.java     [all...]
  /prebuilts/tools/common/m2/repository/com/squareup/okhttp/okhttp/2.5.0/
okhttp-2.5.0.jar 
  /prebuilts/tools/common/m2/repository/org/codehaus/groovy/modules/http-builder/http-builder/0.7.2/
http-builder-0.7.2.jar 
  /external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
org.apache.commons.httpclient_3.1.0.v201005080502.jar 

Completed in 1695 milliseconds

1 2