Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 590 for rheader (0.03 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/BaseTestHandler.kt

      override fun data(
        inFinished: Boolean,
        streamId: Int,
        source: BufferedSource,
        length: Int,
      ) {
        fail("")
      }
    
      override fun headers(
        inFinished: Boolean,
        streamId: Int,
        associatedStreamId: Int,
        headerBlock: List<Header>,
      ) {
        fail("")
      }
    
      override fun rstStream(
        streamId: Int,
        errorCode: ErrorCode,
      ) {
        fail("")
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. samples/compare/src/test/kotlin/okhttp3/compare/JavaHttpClientTest.kt

        assertThat(recorded.headers["Connection"]).isEqualTo("Upgrade, HTTP2-Settings")
        if (PlatformVersion.majorVersion < 19) {
          assertThat(recorded.headers["Content-Length"]).isEqualTo("0")
        }
        assertThat(recorded.headers["HTTP2-Settings"]).isNotNull()
        assertThat(recorded.headers["Upgrade"]).isEqualTo("h2c") // HTTP/2 over plaintext!
        assertThat(recorded.headers["User-Agent"]!!).matches(Regex("Java-http-client/.*"))
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  3. samples/guide/src/main/java/okhttp3/recipes/CurrentDateHeader.java

          System.out.println(response.request().header("Date"));
        }
      }
    
      static class CurrentDateInterceptor implements Interceptor {
        @Override public Response intercept(Chain chain) throws IOException {
          Request request = chain.request();
          Headers newHeaders = request.headers()
              .newBuilder()
              .add("Date", new Date())
              .build();
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Oct 31 15:32:50 UTC 2018
    - 1.8K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/CacheControl.kt

         */
        @JvmField
        val FORCE_CACHE = commonForceCache()
    
        /**
         * Returns the cache directives of [headers]. This honors both Cache-Control and Pragma headers
         * if they are present.
         */
        @JvmStatic
        fun parse(headers: Headers): CacheControl = commonParse(headers)
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 10K bytes
    - Viewed (0)
  5. samples/compare/src/test/kotlin/okhttp3/compare/JettyHttpClientTest.kt

            .newRequest(server.url("/").toUri())
            .header("Accept", "text/plain")
        val response = request.send()
        assertThat(response.status).isEqualTo(200)
        assertThat(response.contentAsString).isEqualTo("hello, Jetty HTTP Client")
    
        val recorded = server.takeRequest()
        assertThat(recorded.headers["Accept"]).isEqualTo("text/plain")
        assertThat(recorded.headers["Accept-Encoding"]).isEqualTo("gzip")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  6. README.md

    ```java
    import org.codelibs.curl.Curl;
    import org.codelibs.curl.CurlResponse;
    
    try (CurlResponse response = Curl.get("https://example.com")
                                    .param("q", "curl4j")
                                    .header("Accept", "application/json")
                                    .executeSync()) {
        System.out.println("Status: " + response.getHttpStatusCode());
        System.out.println(response.getContentAsString());
    }
    ```
    
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Sat Jul 05 01:11:14 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/HttpUpgradesTest.kt

      @Test
      fun upgradeRefusedByServer() {
        server.enqueue(MockResponse(body = "normal request"))
        val requestWithUpgrade =
          Request
            .Builder()
            .url(server.url("/"))
            .header("Connection", "upgrade")
            .build()
        client.newCall(requestWithUpgrade).execute().use { response ->
          assertThat(response.code).isEqualTo(200)
          assertThat(response.socket).isNull()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/api/admin/reqheader/CreateBody.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.app.web.api.admin.reqheader;
    
    import org.codelibs.fess.app.web.admin.reqheader.CreateForm;
    
    /**
     * Request body for creating request header via REST API.
     * Extends CreateForm to inherit validation and field definitions.
     */
    public class CreateBody extends CreateForm {
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 1011 bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/SocketFailureTest.kt

          )
        call1.execute().use { response -> response.body.string() }
    
        listener.shouldClose = true
        // Large headers are a likely reason the servers would cut off the connection before it completes sending
        // request headers.
        // 431 "Request Header Fields Too Large"
        val largeHeaders =
          Headers
            .Builder()
            .apply {
              repeat(32) {
                add("name-$it", "value-$it-" + "0".repeat(1024))
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 21:11:09 UTC 2025
    - 3K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/api/admin/reqheader/SearchBody.java

     */
    package org.codelibs.fess.app.web.api.admin.reqheader;
    
    import org.codelibs.fess.app.web.api.admin.BaseSearchBody;
    
    /**
     * Search request body for request header administration API.
     */
    public class SearchBody extends BaseSearchBody {
    
        /**
         * Default constructor.
         */
        public SearchBody() {
            super();
        }
    
        /** Request header configuration ID */
        public String id;
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 1019 bytes
    - Viewed (0)
Back to top