OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:requestBody
(Results
1 - 17
of
17
) sorted by null
/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
...]
/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();
/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));
/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/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/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/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
/prebuilts/tools/common/m2/repository/net/sourceforge/htmlunit/htmlunit/2.14/
htmlunit-2.14.jar
/external/libgdx/backends/gdx-backends-gwt/libs/
gwt-dev.jar
Completed in 908 milliseconds