/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | MultipartBuilderTest.java | 41 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 …]
|
D | URLConnectionTest.java | 1392 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 …]
|
D | CallTest.java | 2010 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/ |
D | HttpLoggingInterceptor.java | 148 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/ |
D | HttpMethodResponse.java | 51 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/ |
D | JsonRequest.java | 60 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/ |
D | RequestBodyCompression.java | 48 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()
|
D | PostMultipart.java | 40 RequestBody requestBody = new MultipartBuilder() in run() local 50 .post(requestBody) in run()
|
D | PostStreaming.java | 33 RequestBody requestBody = new RequestBody() { in run() local 57 .post(requestBody) in run()
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
D | DisconnectTest.java | 86 OutputStream requestBody = connection.getOutputStream(); in interruptWritingRequestBody() local 90 requestBody.write(buffer); in interruptWritingRequestBody() 91 requestBody.flush(); in interruptWritingRequestBody()
|
D | ThreadInterruptTest.java | 88 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/ |
D | HttpURLConnectionImpl.java | 344 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/ |
D | HttpURLConnectionImpl.java | 340 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/ |
D | AuthenticationHelperImpl.java | 295 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/ |
D | MockWebServer.java | 469 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/ |
D | HttpStream.java | 43 void writeRequestBody(RetryableSink requestBody) throws IOException; in writeRequestBody() argument
|
D | Http1xStream.java | 229 @Override public void writeRequestBody(RetryableSink requestBody) throws IOException { in writeRequestBody() argument 232 requestBody.writeToSocket(sink); in writeRequestBody()
|
D | Http2xStream.java | 140 @Override public void writeRequestBody(RetryableSink requestBody) throws IOException { in writeRequestBody() argument 141 requestBody.writeToSocket(stream.getSink()); in writeRequestBody()
|
D | HttpEngine.java | 315 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/ |
D | HttpStream.java | 47 void writeRequestBody(RetryableSink requestBody) throws IOException; in writeRequestBody() argument
|
D | Http2xStream.java | 142 @Override public void writeRequestBody(RetryableSink requestBody) throws IOException { in writeRequestBody() argument 143 requestBody.writeToSocket(stream.getSink()); in writeRequestBody()
|
D | Http1xStream.java | 231 @Override public void writeRequestBody(RetryableSink requestBody) throws IOException { in writeRequestBody() argument 234 requestBody.writeToSocket(sink); in writeRequestBody()
|
D | HttpEngine.java | 324 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/ |
D | MockWebServer.java | 631 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/ |
D | server.go | 1781 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
|