Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 161 for user (0.16 sec)

  1. okhttp/src/test/java/okhttp3/HttpUrlJvmTest.kt

      fun toUriWithUsernameNoPassword() {
        val httpUrl =
          HttpUrl.Builder()
            .scheme("http")
            .username("user")
            .host("host")
            .build()
        assertThat(httpUrl.toString()).isEqualTo("http://user@host/")
        assertThat(httpUrl.toUri().toString()).isEqualTo("http://user@host/")
      }
    
      @Test
      fun toUriUsernameSpecialCharacters() {
        val url =
          HttpUrl.Builder()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/ConnectionPool.kt

     * share the same [Address] may share a [Connection]. This class implements the policy
     * of which connections to keep open for future use.
     *
     * @constructor Create a new connection pool with tuning parameters appropriate for a single-user
     * application. The tuning parameters in this pool are subject to change in future OkHttp releases.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 03 20:39:41 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  3. okcurl/src/main/kotlin/okhttp3/curl/Main.kt

      val method: String? by option("-X", "--request", help = "Specify request command to use")
    
      val data: String? by option("-d", "--data", help = "HTTP POST data")
    
      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())
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.7K bytes
    - Viewed (1)
  4. okhttp/src/main/kotlin/okhttp3/OkHttp.kt

       * 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 May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 1.6K bytes
    - Viewed (1)
  5. 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 May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  6. 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 May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  7. samples/slack/src/main/java/okhttp3/slack/SlackApi.java

    import okhttp3.WebSocketListener;
    import okio.ByteString;
    
    /**
     * API access to the <a href="https://api.slack.com/apps">Slack API</a> as an application. One
     * instance of this class may operate without a user, or on behalf of many users. Use the Slack API
     * dashboard to create a client ID and secret for this application.
     *
     * <p>You must configure your Slack API OAuth and Permissions page with a localhost URL like {@code
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Jul 06 19:30:55 GMT 2018
    - 4.4K bytes
    - Viewed (1)
  8. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

        assertThat(parse("http://user@host/").username).isEqualTo("user")
        assertThat(parse("http://%F0%9F%8D%A9@host/").username).isEqualTo("\uD83C\uDF69")
      }
    
      @Test
      fun decodePassword() {
        assertThat(parse("http://user:password@host/").password).isEqualTo("password")
        assertThat(parse("http://user:@host/").password).isEqualTo("")
        assertThat(parse("http://user:%F0%9F%8D%A9@host/").password)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 67.9K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt

      var upstreamPos: Long,
      /** User-supplied additional data persisted with the source data. */
      private val metadata: ByteString,
      /** The maximum size of [buffer]. */
      val bufferMaxSize: Long,
    ) {
      /** The thread that currently has access to upstream. Possibly null. Guarded by this. */
      var upstreamReader: Thread? = null
    
      /**
       * A buffer for [upstreamReader] to use when pulling bytes from upstream. Only the
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  10. 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 May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
Back to top