Home
last modified time | relevance | path

Searched refs:requestBody (Results 1 – 25 of 27) sorted by relevance

12

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DMultipartBuilderTest.java41 RequestBody requestBody = new MultipartBuilder("123") in singlePart() local
45 assertEquals("multipart/mixed; boundary=123", requestBody.contentType().toString()); in singlePart()
48 requestBody.writeTo(buffer); in singlePart()
49 assertEquals(53, requestBody.contentLength()); in singlePart()
50 assertEquals(buffer.size(), requestBody.contentLength()); in singlePart()
70 RequestBody requestBody = new MultipartBuilder("123") in threeParts() local
76 assertEquals("multipart/mixed; boundary=123", requestBody.contentType().toString()); in threeParts()
79 requestBody.writeTo(buffer); in threeParts()
80 assertEquals(112, requestBody.contentLength()); in threeParts()
81 assertEquals(buffer.size(), requestBody.contentLength()); in threeParts()
[all …]
DURLConnectionTest.java1392 byte[] requestBody = { 'A', 'B', 'C', 'D' };
1394 connection.setFixedLengthStreamingMode(requestBody.length);
1399 outputStream.write(requestBody);
1674 byte[] requestBody = { 'A', 'B', 'C', 'D' };
1676 connection.setFixedLengthStreamingMode(requestBody.length);
1681 outputStream.write(requestBody);
1713 byte[] requestBody = { 'A', 'B', 'C', 'D' };
1715 outputStream.write(requestBody);
2036 byte[] requestBody = { 'A', 'B', 'C', 'D' };
2038 outputStream.write(requestBody);
[all …]
DCallTest.java2010 RequestBody requestBody = new RequestBody() { in failingCallsDoNotInterfereWithConnection() local
2027 .post(requestBody) in failingCallsDoNotInterfereWithConnection()
2166 RequestBody requestBody = new RequestBody() { in makeFailingCall() local
2181 .post(requestBody) in makeFailingCall()
/external/okhttp/okhttp-logging-interceptor/src/main/java/com/squareup/okhttp/logging/
DHttpLoggingInterceptor.java148 RequestBody requestBody = request.body(); in intercept() local
149 boolean hasRequestBody = requestBody != null; in intercept()
156 requestStartMessage += " (" + requestBody.contentLength() + "-byte body)"; in intercept()
164 if (requestBody.contentType() != null) { in intercept()
165 logger.log("Content-Type: " + requestBody.contentType()); in intercept()
167 if (requestBody.contentLength() != -1) { in intercept()
168 logger.log("Content-Length: " + requestBody.contentLength()); in intercept()
187 requestBody.writeTo(buffer); in intercept()
190 MediaType contentType = requestBody.contentType(); in intercept()
199 + " (" + requestBody.contentLength() + "-byte body)"); in intercept()
/external/oauth/core/src/main/java/net/oauth/client/httpclient4/
DHttpMethodResponse.java51 public HttpMethodResponse(HttpRequestBase request, HttpResponse response, byte[] requestBody, in HttpMethodResponse() argument
57 this.requestBody = requestBody; in HttpMethodResponse()
64 private final byte[] requestBody; field in HttpMethodResponse
115 if (requestBody != null) { in dump()
116 request.append(new String(requestBody, requestEncoding)); in dump()
/external/volley/src/main/java/com/android/volley/toolbox/
DJsonRequest.java60 String url, String requestBody, Listener<T> listener, ErrorListener errorListener) { in JsonRequest() argument
61 this(Method.DEPRECATED_GET_OR_POST, url, requestBody, listener, errorListener); in JsonRequest()
67 @Nullable String requestBody, in JsonRequest() argument
72 mRequestBody = requestBody; in JsonRequest()
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/
DRequestBodyCompression.java48 Map<String, String> requestBody = new LinkedHashMap<>(); in run() local
49 requestBody.put("longUrl", "https://publicobject.com/2014/12/04/html-formatting-javadocs/"); in run()
51 MEDIA_TYPE_JSON, new Gson().toJson(requestBody)); in run()
DPostMultipart.java40 RequestBody requestBody = new MultipartBuilder() in run() local
50 .post(requestBody) in run()
DPostStreaming.java33 RequestBody requestBody = new RequestBody() { in run() local
57 .post(requestBody) in run()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DDisconnectTest.java86 OutputStream requestBody = connection.getOutputStream(); in interruptWritingRequestBody() local
90 requestBody.write(buffer); in interruptWritingRequestBody()
91 requestBody.flush(); in interruptWritingRequestBody()
DThreadInterruptTest.java88 OutputStream requestBody = connection.getOutputStream(); in interruptWritingRequestBody() local
92 requestBody.write(buffer); in interruptWritingRequestBody()
93 requestBody.flush(); in interruptWritingRequestBody()
/external/okhttp/repackaged/okhttp-urlconnection/src/main/java/com/android/okhttp/internal/huc/
DHttpURLConnectionImpl.java344 RetryableSink requestBody, Response priorResponse) in newHttpEngine() argument
390 requestBody, priorResponse); in newHttpEngine()
434 Sink requestBody = httpEngine.getRequestBody(); in getResponse() local
436 requestBody = null; in getResponse()
439 if (requestBody != null && !(requestBody instanceof RetryableSink)) { in getResponse()
449 httpEngine = newHttpEngine(followUp.method(), streamAllocation, (RetryableSink) requestBody, in getResponse()
/external/okhttp/okhttp-urlconnection/src/main/java/com/squareup/okhttp/internal/huc/
DHttpURLConnectionImpl.java340 RetryableSink requestBody, Response priorResponse) in newHttpEngine() argument
386 requestBody, priorResponse); in newHttpEngine()
430 Sink requestBody = httpEngine.getRequestBody(); in getResponse() local
432 requestBody = null; in getResponse()
435 if (requestBody != null && !(requestBody instanceof RetryableSink)) { in getResponse()
445 httpEngine = newHttpEngine(followUp.method(), streamAllocation, (RetryableSink) requestBody, in getResponse()
/external/nist-sip/java/gov/nist/javax/sip/clientauthutils/
DAuthenticationHelperImpl.java295 private AuthorizationHeader getAuthorization(String method, String uri, String requestBody, in getAuthorization() argument
310 method, uri, requestBody, qop,sipStack.getStackLogger());// jvb changed in getAuthorization()
362 private AuthorizationHeader getAuthorization(String method, String uri, String requestBody, in getAuthorization() argument
376 method, uri, requestBody, qop,sipStack.getStackLogger());// jvb changed in getAuthorization()
/external/mockwebserver/src/main/java/com/google/mockwebserver/
DMockWebServer.java469 TruncatingOutputStream requestBody = new TruncatingOutputStream(); in readRequest() local
474 throttledTransfer(throttlePolicy, in, requestBody, contentLength); in readRequest()
484 throttledTransfer(throttlePolicy, in, requestBody, chunkSize); in readRequest()
504 return new RecordedRequest(request, headers, chunkSizes, requestBody.numBytesReceived, in readRequest()
505 requestBody.toByteArray(), sequenceNumber, socket); in readRequest()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DHttpStream.java43 void writeRequestBody(RetryableSink requestBody) throws IOException; in writeRequestBody() argument
DHttp1xStream.java229 @Override public void writeRequestBody(RetryableSink requestBody) throws IOException { in writeRequestBody() argument
232 requestBody.writeToSocket(sink); in writeRequestBody()
DHttp2xStream.java140 @Override public void writeRequestBody(RetryableSink requestBody) throws IOException { in writeRequestBody() argument
141 requestBody.writeToSocket(stream.getSink()); in writeRequestBody()
DHttpEngine.java315 Sink requestBody = getRequestBody(); in getBufferedRequestBody()
316 return requestBody != null in getBufferedRequestBody()
317 ? (bufferedRequestBody = Okio.buffer(requestBody)) in getBufferedRequestBody()
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/http/
DHttpStream.java47 void writeRequestBody(RetryableSink requestBody) throws IOException; in writeRequestBody() argument
DHttp2xStream.java142 @Override public void writeRequestBody(RetryableSink requestBody) throws IOException { in writeRequestBody() argument
143 requestBody.writeToSocket(stream.getSink()); in writeRequestBody()
DHttp1xStream.java231 @Override public void writeRequestBody(RetryableSink requestBody) throws IOException { in writeRequestBody() argument
234 requestBody.writeToSocket(sink); in writeRequestBody()
DHttpEngine.java324 Sink requestBody = getRequestBody(); in getBufferedRequestBody()
325 return requestBody != null in getBufferedRequestBody()
326 ? (bufferedRequestBody = Okio.buffer(requestBody)) in getBufferedRequestBody()
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/
DMockWebServer.java631 TruncatingBuffer requestBody = new TruncatingBuffer(bodyLimit);
636 throttledTransfer(policy, socket, source, Okio.buffer(requestBody), contentLength, true);
646 throttledTransfer(policy, socket, source, Okio.buffer(requestBody), chunkSize, true);
656 return new RecordedRequest(request, headers.build(), chunkSizes, requestBody.receivedByteCount,
657 requestBody.buffer, sequenceNumber, socket);
/external/syzkaller/vendor/golang.org/x/net/http2/
Dserver.go1781 st.body = req.Body.(*requestBody).pipe // may be nil
1949 req.Body.(*requestBody).pipe = &pipe{
2012 body := &requestBody{
2200 type requestBody struct { struct
2209 func (b *requestBody) Close() error { argument
2217 func (b *requestBody) Read(p []byte) (n int, err error) { argument
2257 body *requestBody // to close at end of request, if DATA frames didn't

12