- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 115 for RequestBody (0.04 sec)
-
src/test/java/org/codelibs/fess/it/admin/BoostDocTests.java
protected Map<String, Object> createTestParam(int id) { final Map<String, Object> requestBody = new HashMap<>(); final String keyProp = NAME_PREFIX + id; requestBody.put(KEY_PROPERTY, keyProp); requestBody.put("boost_expr", 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.3K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/PostFile.java
* limitations under the License. */ package okhttp3.recipes; import java.io.File; import java.io.IOException; import okhttp3.MediaType; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.RequestBody; import okhttp3.Response; public final class PostFile { public static final MediaType MEDIA_TYPE_MARKDOWN = MediaType.get("text/x-markdown; charset=utf-8");
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat May 25 18:02:55 UTC 2019 - 1.5K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/PostMultipart.java
// Use the imgur image upload API as documented at https://api.imgur.com/endpoints/image RequestBody requestBody = new MultipartBody.Builder() .setType(MultipartBody.FORM) .addFormDataPart("title", "Square Logo") .addFormDataPart("image", "logo-square.png", RequestBody.create( new File("docs/images/logo-square.png"), MEDIA_TYPE_PNG)) .build();
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jun 24 12:59:42 UTC 2019 - 2.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt
@Test fun requestBodySuccessStreaming() { val requestBody: RequestBody = object : RequestBody() { override fun contentType() = "text/plain".toMediaType() override fun writeTo(sink: BufferedSink) { sink.write(ByteArray(8192)) sink.flush() } } requestBodySuccess(requestBody, CoreMatchers.equalTo(8192L), CoreMatchers.equalTo(19L)) }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 60.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/it/CrudTestBase.java
final Map<String, Object> requestBody = new HashMap<>(updateMap); requestBody.put("version_no", 1); final String idKey = getIdKey(); if (setting.containsKey(idKey)) { requestBody.put(idKey, setting.get(idKey)); } for (String key : keySet) { if (!requestBody.containsKey(key)) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 9.2K bytes - Viewed (0) -
docs/changelogs/upgrading_to_okhttp_4.md
| MediaType.parse(String) | String.toMediaTypeOrNull() | | RequestBody.create(ByteArray) | ByteArray.toRequestBody() | | RequestBody.create(ByteString) | ByteString.toRequestBody() | | RequestBody.create(File) | File.asRequestBody() | | RequestBody.create(String) | String.toRequestBody() |
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun Feb 06 16:58:16 UTC 2022 - 10.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/it/admin/LabelTypeTests.java
} @Override protected Map<String, Object> createTestParam(int id) { final Map<String, Object> requestBody = new HashMap<>(); final String keyProp = NAME_PREFIX + id; requestBody.put(KEY_PROPERTY, keyProp); requestBody.put("value", Integer.valueOf(id).toString()); 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.3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/it/admin/dict/StemmerOverrideTests.java
} @Override protected Map<String, Object> createTestParam(int id) { final Map<String, Object> requestBody = new HashMap<>(); final String keyProp = NAME_PREFIX + id; requestBody.put(KEY_PROPERTY, keyProp); requestBody.put("output", "output"); return requestBody; } @Override protected Map<String, Object> getUpdateMap() {
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/PostStreaming.kt
import okhttp3.MediaType.Companion.toMediaType import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.RequestBody import okio.BufferedSink class PostStreaming { private val client = OkHttpClient() fun run() { val requestBody = object : RequestBody() { override fun contentType() = MEDIA_TYPE_MARKDOWN override fun writeTo(sink: BufferedSink) {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.9K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/MultipartBody.kt
level = DeprecationLevel.ERROR, ) fun body(): RequestBody = body companion object { @JvmStatic fun create(body: RequestBody): Part = create(null, body) @JvmStatic fun create( headers: Headers?, body: RequestBody, ): Part { require(headers?.get("Content-Type") == null) { "Unexpected header: Content-Type" }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 10.9K bytes - Viewed (0)