Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 345 for Nering (0.19 sec)

  1. 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()
    
    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)
  2. okhttp/src/main/kotlin/okhttp3/internal/idn/Punycode.kt

       * limits.
       */
      fun encode(string: String): String? {
        var pos = 0
        val limit = string.length
        val result = Buffer()
    
        while (pos < limit) {
          var dot = string.indexOf('.', startIndex = pos)
          if (dot == -1) dot = limit
    
          if (!encodeLabel(string, pos, dot, result)) {
            // If we couldn't encode the label, give up.
            return null
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 03 03:04:50 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  3. samples/static-server/src/main/java/okhttp3/sample/SampleServer.java

      }
    
      private MockResponse directoryToResponse(String basePath, File directory) {
        if (!basePath.endsWith("/")) basePath += "/";
    
        StringBuilder response = new StringBuilder();
        response.append(String.format("<html><head><title>%s</title></head><body>", basePath));
        response.append(String.format("<h1>%s</h1>", basePath));
        for (String file : directory.list()) {
          response.append(String.format("<div class='file'><a href='%s'>%s</a></div>",
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Jan 02 02:50:44 GMT 2019
    - 4.7K bytes
    - Viewed (0)
  4. samples/slack/src/main/java/okhttp3/slack/SlackApi.java

      private final HttpUrl baseUrl = HttpUrl.get("https://slack.com/api/");
      private final OkHttpClient httpClient;
      private final Moshi moshi;
    
      public final String clientId;
      public final String clientSecret;
      public final int port;
    
      public SlackApi(String clientId, String clientSecret, int port) {
        this.httpClient = new OkHttpClient.Builder()
            .build();
        this.moshi = new Moshi.Builder()
    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)
  5. okhttp/src/test/java/okhttp3/ResponseBodyJvmTest.kt

      @Test
      fun stringEmpty() {
        val body = body("")
        assertThat(body.string()).isEqualTo("")
      }
    
      @Test
      fun stringLooksLikeBomButTooShort() {
        val body = body("000048")
        assertThat(body.string()).isEqualTo("\u0000\u0000H")
      }
    
      @Test
      fun stringDefaultsToUtf8() {
        val body = body("68656c6c6f")
        assertThat(body.string()).isEqualTo("hello")
      }
    
      @Test
      fun stringExplicitCharset() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13K bytes
    - Viewed (0)
  6. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

      }
    
      @Test fun `utf8 string`() {
        val bytes = "0c04f09f988e".decodeHex()
        assertThat(Adapters.UTF8_STRING.fromDer(bytes)).isEqualTo("\uD83D\uDE0E")
        assertThat(Adapters.UTF8_STRING.toDer("\uD83D\uDE0E")).isEqualTo(bytes)
      }
    
      @Test fun `ia5 string`() {
        val bytes = "16026869".decodeHex()
        assertThat(Adapters.IA5_STRING.fromDer(bytes)).isEqualTo("hi")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 31.7K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/HeadersChallengesTest.kt

        assertThat(challenges.size).isEqualTo(1)
        assertThat(challenges[0].scheme).isEqualTo("Digest")
        assertThat(challenges[0].realm).isEqualTo("myrealm")
        val expectedAuthParams = mutableMapOf<String, String>()
        expectedAuthParams["realm"] = "myrealm"
        expectedAuthParams["nonce"] = "fjalskdflwejrlaskdfjlaskdjflaksjdflkasdf"
        expectedAuthParams["qop"] = "auth"
        expectedAuthParams["stale"] = "FALSE"
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.6K bytes
    - Viewed (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/FakeDns.kt

    import okio.Buffer
    
    class FakeDns : Dns {
      private val hostAddresses: MutableMap<String, List<InetAddress>> = mutableMapOf()
      private val requestedHosts: MutableList<String> = mutableListOf()
      private var nextAddress = 0xff000064L // 255.0.0.100 in IPv4; ::ff00:64 in IPv6.
    
      /** Sets the results for `hostname`.  */
      operator fun set(
        hostname: String,
        addresses: List<InetAddress>,
      ): FakeDns {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  9. okhttp-android/api/okhttp-android.api

    	public static final fun androidLogging (Lokhttp3/logging/LoggingEventListener$Companion;ILjava/lang/String;)Lokhttp3/logging/LoggingEventListener$Factory;
    	public static synthetic fun androidLogging$default (Lokhttp3/logging/HttpLoggingInterceptor$Companion;ILjava/lang/String;ILjava/lang/Object;)Lokhttp3/logging/HttpLoggingInterceptor;
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 11:07:32 GMT 2024
    - 1.3K bytes
    - Viewed (1)
  10. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/ServerSentEventReader.kt

    import okio.Options
    
    class ServerSentEventReader(
      private val source: BufferedSource,
      private val callback: Callback,
    ) {
      private var lastId: String? = null
    
      interface Callback {
        fun onEvent(
          id: String?,
          type: String?,
          data: String,
        )
    
        fun onRetryChange(timeMs: Long)
      }
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.3K bytes
    - Viewed (0)
Back to top