Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 65 for requestBody (0.04 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/RequestBody.kt

        @JvmField
        val EMPTY: RequestBody = ByteString.EMPTY.toRequestBody()
    
        /**
         * Returns a new request body that transmits this string. If [contentType] is non-null and lacks
         * a charset, this will use UTF-8.
         */
        @JvmStatic
        @JvmName("create")
        fun String.toRequestBody(contentType: MediaType? = null): RequestBody {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 04 17:43:43 UTC 2025
    - 9K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/it/admin/CrawlerLogTests.java

            requestBody.put("depth", 1);
            requestBody.put("num_of_thread", 1);
            requestBody.put("interval_time", 1000);
            requestBody.put("boost", 100);
            requestBody.put("available", true);
            requestBody.put("sort_order", 0);
            createWebConfig(requestBody);
        }
    
        private static void createJob() {
            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
    - 9.1K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/it/admin/WebConfigTests.java

            final Map<String, Object> requestBody = new HashMap<>();
            final String keyProp = NAME_PREFIX + id;
            final String urls = "http://" + NAME_PREFIX + id;
            requestBody.put(KEY_PROPERTY, keyProp);
            requestBody.put("urls", urls);
            requestBody.put("user_agent", "Mozilla/5.0");
            requestBody.put("num_of_thread", 5);
            requestBody.put("interval_time", 1000);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/it/admin/AccessTokenTests.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("permissions", "Radmin-api");
            return requestBody;
        }
    
        @Override
        protected Map<String, Object> getUpdateMap() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jun 12 02:18:38 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/it/admin/FileConfigTests.java

            final Map<String, Object> requestBody = new HashMap<>();
            final String keyProp = NAME_PREFIX + id;
            final String paths = "file:///" + NAME_PREFIX + id;
            requestBody.put(KEY_PROPERTY, keyProp);
            requestBody.put("paths", paths);
            requestBody.put("num_of_thread", 5);
            requestBody.put("interval_time", 1000);
            requestBody.put("boost", id);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/it/admin/dict/KuromojiTests.java

            final Map<String, Object> requestBody = new HashMap<>();
            final String keyProp = NAME_PREFIX + id;
            requestBody.put(KEY_PROPERTY, keyProp);
            requestBody.put("segmentation", "segment");
            requestBody.put("reading", "reading");
            requestBody.put("pos", "pos");
            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.5K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/it/admin/SearchListTests.java

            for (Map<String, Object> setting : settings) {
                final Map<String, Object> requestBody = new HashMap<>(updateMap);
                final String idKey = getIdKey();
    
                requestBody.put("version", 1);
                requestBody.put("crud_mode", 2);
    
                if (setting.containsKey(idKey)) {
                    requestBody.put(idKey, setting.get(idKey));
                }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jun 12 02:18:38 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  8. samples/guide/src/main/java/okhttp3/recipes/kt/UploadProgress.kt

            }
          }
    
        val file = File("docs/images/logo-square.png")
        val requestBody: RequestBody = file.asRequestBody(MEDIA_TYPE_PNG)
    
        val request =
          Request
            .Builder()
            .header("Authorization", "Client-ID $IMGUR_CLIENT_ID")
            .url("https://api.imgur.com/3/image")
            .post(ProgressRequestBody(requestBody, progressListener))
            .build()
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  9. samples/guide/src/main/java/okhttp3/recipes/PostStreaming.java

    import okhttp3.Request;
    import okhttp3.RequestBody;
    import okhttp3.Response;
    import okio.BufferedSink;
    
    public final class PostStreaming {
      public static final MediaType MEDIA_TYPE_MARKDOWN
          = MediaType.get("text/x-markdown; charset=utf-8");
    
      private final OkHttpClient client = new OkHttpClient();
    
      public void run() throws Exception {
        RequestBody requestBody = new RequestBody() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jul 06 03:18:15 UTC 2018
    - 2.1K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/it/admin/SchedulerTests.java

            final Map<String, Object> requestBody = new HashMap<>();
            final String keyProp = NAME_PREFIX + id;
            requestBody.put(KEY_PROPERTY, keyProp);
            requestBody.put("target", "target" + id);
            requestBody.put("script_type", "script" + id);
            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)
Back to top