- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 115 for RequestBody (0.46 sec)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/GzipRequestBody.kt
* limitations under the License. */ package okhttp3.internal.http import okhttp3.RequestBody import okio.BufferedSink import okio.GzipSink import okio.buffer internal class GzipRequestBody( val delegate: RequestBody, ) : RequestBody() { override fun contentType() = delegate.contentType() // We don't know the compressed length in advance!
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 04 17:43:43 UTC 2025 - 1.1K bytes - Viewed (0) -
okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt
val requestBody = request.body val connection = chain.connection() var requestStartMessage = ("--> ${request.method} ${redactUrl(request.url)}${if (connection != null) " " + connection.protocol() else ""}") if (!logHeaders && requestBody != null) { requestStartMessage += " (${requestBody.contentLength()}-byte body)" }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Aug 21 14:27:04 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/it/admin/KeyMatchTests.java
final Map<String, Object> requestBody = new HashMap<>(); final String keyProp = NAME_PREFIX + id; requestBody.put(KEY_PROPERTY, keyProp); requestBody.put("query", "query" + id); requestBody.put("max_size", Integer.valueOf(id).toString()); requestBody.put("boost", 100); return requestBody; } @Override
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jun 19 07:14:01 UTC 2025 - 2.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/it/admin/PathMapTests.java
final Map<String, Object> requestBody = new HashMap<>(); final String keyProp = NAME_PREFIX + id; requestBody.put(KEY_PROPERTY, keyProp); requestBody.put("replacement", "replacement" + id); requestBody.put("process_type", "C"); requestBody.put("sort_order", id); return requestBody; } @Override
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Mar 15 06:53:53 UTC 2025 - 2.4K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/PostMultipart.kt
import okhttp3.MultipartBody import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.RequestBody.Companion.asRequestBody class PostMultipart { private val client = OkHttpClient() fun run() { // Use the imgur image upload API as documented at https://api.imgur.com/endpoints/image val requestBody = MultipartBody .Builder() .setType(MultipartBody.FORM)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 2.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/it/admin/RoleTests.java
final Map<String, Object> requestBody = new HashMap<>(); final String keyProp = NAME_PREFIX + id; requestBody.put(KEY_PROPERTY, keyProp); return requestBody; } private static final String NEW_SUFFIX = "_new"; @Override protected Map<String, Object> getUpdateMap() { final Map<String, Object> requestBody = new HashMap<>();
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Mar 15 06:53:53 UTC 2025 - 2.7K bytes - Viewed (0) -
okhttp/api/android/okhttp.api
public final fun create (Lokhttp3/MediaType;[BI)Lokhttp3/RequestBody; public final fun create (Lokhttp3/MediaType;[BII)Lokhttp3/RequestBody; public final fun create (Lokio/ByteString;Lokhttp3/MediaType;)Lokhttp3/RequestBody; public final fun create (Lokio/Path;Lokio/FileSystem;Lokhttp3/MediaType;)Lokhttp3/RequestBody; public final fun create ([B)Lokhttp3/RequestBody; public final fun create ([BLokhttp3/MediaType;)Lokhttp3/RequestBody;
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 16 09:39:51 UTC 2025 - 69.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/it/admin/DuplicateHostTests.java
final Map<String, Object> requestBody = new HashMap<>(); final String keyProp = NAME_PREFIX + id; requestBody.put(KEY_PROPERTY, keyProp); requestBody.put("duplicate_host_name", "duplicate_" + Integer.valueOf(id).toString()); requestBody.put("sort_order", id); return requestBody; } @Override protected Map<String, Object> getUpdateMap() {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jun 19 07:14:01 UTC 2025 - 2.4K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/RequestBodyCompression.java
public void run() throws Exception { Map<String, String> requestBody = new LinkedHashMap<>(); requestBody.put("longUrl", "https://publicobject.com/2014/12/04/html-formatting-javadocs/"); RequestBody jsonRequestBody = RequestBody.create( mapJsonAdapter.toJson(requestBody), MEDIA_TYPE_JSON); Request request = new Request.Builder()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 04 17:43:43 UTC 2025 - 3.1K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/internal/duplex/AsyncRequestBody.kt
import java.util.concurrent.TimeUnit.SECONDS import okhttp3.MediaType import okhttp3.RequestBody import okio.BufferedSink import org.junit.jupiter.api.Assertions.assertTrue /** A duplex request body that keeps the provided sinks so they can be written to later. */ class AsyncRequestBody : RequestBody() { private val requestBodySinks: BlockingQueue<BufferedSink> = LinkedBlockingQueue()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 1.5K bytes - Viewed (0)