Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for HEADER (0.03 sec)

  1. pom.xml

    						<year>2025</year>
    					</properties>
    					<headerDefinitions>
    						<headerDefinition>https://www.codelibs.org/assets/license/header-definition-2.xml</headerDefinition>
    					</headerDefinitions>
    					<licenseSets>
    						<licenseSet>
    							<header>https://www.codelibs.org/assets/license/header.txt</header>
    							<includes>
    								<include>src/**/*.java</include>
    							</includes>
    						</licenseSet>
    					</licenseSets>
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sun Aug 31 03:01:32 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  2. docs/recipes.md

    When writing request headers, use `header(name, value)` to set the only occurrence of `name` to `value`. If there are existing values, they will be removed before the new value is added. Use `addHeader(name, value)` to add a header without removing the headers already present.
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 47.8K bytes
    - Viewed (0)
  3. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceHttpTest.kt

      }
    
      @Test
      fun sseReauths() {
        client =
          client
            .newBuilder()
            .authenticator { route, response ->
              response.request
                .newBuilder()
                .header("Authorization", "XYZ")
                .build()
            }.build()
        server.enqueue(
          MockResponse(
            code = 401,
            body = "{\"error\":{\"message\":\"No auth credentials found\",\"code\":401}}",
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:47:47 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  4. 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)
  5. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceFactoryTest.java

          @Override
          public void onOpen(@NotNull EventSource eventSource, @NotNull Response response) {
            try {
              assertEquals("text/event-stream", response.request().header("Accept"));
            } catch (Exception e) {
              future.completeExceptionally(e);
            }
          }
    
          @Override
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:47:47 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  6. okhttp-sse/src/main/kotlin/okhttp3/sse/EventSource.kt

           */
          @JvmStatic
          @JvmName("create")
          fun Call.Factory.asEventSourceFactory(): Factory =
            Factory { request, listener ->
              val actualRequest =
                if (request.header("Accept") == null) {
                  request.newBuilder().addHeader("Accept", "text/event-stream").build()
                } else {
                  request
                }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:47:47 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  7. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourcesHttpTest.kt

          if (response.code == 401) {
            assertThat(response.body.string()).isEqualTo("{\"error\":{\"message\":\"No auth credentials found\",\"code\":401}}")
            request = request.newBuilder().header("Authorization", "XYZ").build()
          } else {
            response.processEventSource(listener)
            listener.assertOpen()
            listener.assertEvent(null, null, "hey")
            listener.assertClose()
          }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 13:49:38 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  8. samples/guide/src/main/java/okhttp3/recipes/UploadProgress.java

            }
          }
        };
    
        RequestBody requestBody = RequestBody.create(
          new File("docs/images/logo-square.png"),
          MEDIA_TYPE_PNG);
    
        Request request = new Request.Builder()
          .header("Authorization", "Client-ID " + IMGUR_CLIENT_ID)
          .url("https://api.imgur.com/3/image")
          .post(new ProgressRequestBody(requestBody, progressListener))
          .build();
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 4.2K bytes
    - Viewed (1)
  9. pom.xml

    					<charset>UTF-8</charset>
    					<locale>en_US</locale>
    					<windowtitle>Open Source Enterprise Search: Fess API</windowtitle>
    					<header>&lt;a href="https://fess.codelibs.org/" target="_blank"&gt;Enterprise Search Server: Fess&lt;/a&gt;</header>
    					<excludePackageNames>
    						org.codelibs.fess.mylasta.*,
    						org.codelibs.fess.opensearch.config.*,
    						org.codelibs.fess.opensearch.common.*,
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Sep 04 05:22:58 UTC 2025
    - 49.6K bytes
    - Viewed (0)
Back to top