Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for Wagenet (0.21 sec)

  1. okcurl/src/main/kotlin/okhttp3/curl/Main.kt

      val headers: List<String>? by option("-H", "--header", help = "Custom header to pass to server").multiple()
    
      val userAgent: String by option("-A", "--user-agent", help = "User-Agent to send to server").default(NAME + "/" + versionString())
    
      val connectTimeout: Int by option(
        "--connect-timeout",
        help = "Maximum time allowed for connection (seconds)",
      ).int().default(DEFAULT_TIMEOUT)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.7K bytes
    - Viewed (1)
  2. okhttp/src/main/kotlin/okhttp3/OkHttp.kt

    object OkHttp {
      /**
       * This is a string like "4.5.0-RC1", "4.5.0", or "4.6.0-SNAPSHOT" indicating the version of
       * OkHttp in the current runtime. Use this to include the OkHttp version in custom `User-Agent`
       * headers.
       *
       * Official OkHttp releases follow [semantic versioning][semver]. Versions with the `-SNAPSHOT`
       * qualifier are not unique and should only be used in development environments. If you create
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 1.6K bytes
    - Viewed (1)
  3. samples/compare/src/test/kotlin/okhttp3/compare/ApacheHttpClientTest.kt

        assertThat(recorded.headers["Accept-Encoding"]).isEqualTo("gzip, x-gzip, deflate")
        assertThat(recorded.headers["Connection"]).isEqualTo("keep-alive")
        assertThat(recorded.headers["User-Agent"]!!).startsWith("Apache-HttpClient/")
      }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  4. samples/compare/src/test/kotlin/okhttp3/compare/JavaHttpClientTest.kt

        }
        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/.*"))
      }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

              .header("User-Agent", "baz")
              .build(),
          )
        assertContent("encrypted response from the origin server", response)
        val connect = server.takeRequest()
        assertThat(connect.headers["Private"]).isNull()
        assertThat(connect.headers["Proxy-Authorization"]).isNull()
        assertThat(connect.headers["User-Agent"]).isEqualTo(USER_AGENT)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  6. docs/changelogs/changelog_4x.md

     *  New: Constant string `okhttp3.VERSION`. This is a string like "4.5.0-RC1", "4.5.0", or
        "4.6.0-SNAPSHOT" indicating the version of OkHttp in the current runtime. Use this to include
        the OkHttp version in custom `User-Agent` headers.
    
     *  Fix: Don't crash when running as a plugin in Android Studio Canary 4.1. To enable
        platform-specific TLS features OkHttp must detect whether it's running in a JVM or in Android.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/HeadersTest.kt

      @Test fun ofMapAcceptsEmptyValue() {
        val headers = mapOf("User-Agent" to "").toHeaders()
        assertThat(headers.value(0)).isEqualTo("")
      }
    
      @Test fun ofMapTrimsKey() {
        val headers = mapOf(" User-Agent " to "OkHttp").toHeaders()
        assertThat(headers.name(0)).isEqualTo("User-Agent")
      }
    
      @Test fun ofMapTrimsValue() {
        val headers = mapOf("User-Agent" to " OkHttp ").toHeaders()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  8. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

          .assertLogEqual("--> GET $url http/1.1")
          .assertLogEqual("Host: $host")
          .assertLogEqual("Connection: Keep-Alive")
          .assertLogEqual("Accept-Encoding: gzip")
          .assertLogMatch(Regex("""User-Agent: okhttp/.+"""))
          .assertLogEqual("--> END GET")
          .assertLogMatch(Regex("""<-- 200 OK $url \(\d+ms\)"""))
          .assertLogEqual("Content-Length: 0")
          .assertLogEqual("<-- END HTTP")
          .assertNoMoreLogs()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 37.6K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/CallTest.kt

            .url(server.url("/"))
            .head()
            .header("User-Agent", "SyncApiTest")
            .build()
        executeSynchronously(request)
          .assertCode(200)
          .assertHeader("Content-Type", "text/plain")
        val recordedRequest = server.takeRequest()
        assertThat(recordedRequest.method).isEqualTo("HEAD")
        assertThat(recordedRequest.headers["User-Agent"]).isEqualTo("SyncApiTest")
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  10. okcurl/src/main/kotlin/okhttp3/curl/internal/-MainCommon.kt

        val parts = header.split(':', limit = 2)
        if (!isSpecialHeader(parts[0])) {
          request.header(parts[0], parts[1])
        }
      }
      referer?.let {
        request.header("Referer", it)
      }
      request.header("User-Agent", userAgent)
    
      return request.build()
    }
    
    private fun Main.mediaType(): MediaType? {
      val mimeType =
        headers?.let {
          for (header in it) {
            val parts = header.split(':', limit = 2)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.7K bytes
    - Viewed (0)
Back to top