Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 53 for formato (0.17 sec)

  1. okhttp-tls/src/main/kotlin/okhttp3/tls/Certificates.kt

      } catch (e: GeneralSecurityException) {
        throw IllegalArgumentException("failed to decode certificate", e)
      }
    }
    
    /**
     * Returns the certificate encoded in [PEM format][rfc_7468].
     *
     * [rfc_7468]: https://tools.ietf.org/html/rfc7468
     */
    fun X509Certificate.certificatePem(): String {
      return buildString {
        append("-----BEGIN CERTIFICATE-----\n")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.8K bytes
    - Viewed (2)
  2. samples/guide/src/main/java/okhttp3/recipes/PostStreamingWithPipe.java

              sink.writeUtf8("Numbers\n");
              sink.writeUtf8("-------\n");
              for (int i = 2; i <= 997; i++) {
                System.out.println(i);
                Thread.sleep(10);
                sink.writeUtf8(String.format(" * %s = %s\n", i, factor(i)));
              }
              sink.close();
            } catch (IOException | InterruptedException e) {
              e.printStackTrace();
            }
          }
    
          private String factor(int n) {
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Jul 06 03:18:15 GMT 2018
    - 3.1K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CacheTest.kt

        return server.takeRequest()
      }
    
      /**
       * For Last-Modified and Date headers, we should echo the date back in the exact format we were
       * served.
       */
      @Test
      fun retainServedDateFormat() {
        // Serve a response with a non-standard date format that OkHttp supports.
        val lastModifiedDate = Date(System.currentTimeMillis() + TimeUnit.HOURS.toMillis(-1))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/http/HttpDateTest.kt

          .isEqualTo(28800000L)
        // Ignore trailing junk
        assertThat("Thursday, 01-Jan-1970 00:00:00 PST JUNK".toHttpDateOrNull()!!.time)
          .isEqualTo(28800000L)
    
        // ANSI C's asctime() format
        // This format ignores the timezone entirely even if it is present and uses GMT.
        assertThat("Fri Jun 6 12:30:30 2014 PST".toHttpDateOrNull()!!.time).isEqualTo(1402057830000L)
        // Ignore trailing junk.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/internal/http/RecordingProxySelector.kt

    import java.io.IOException
    import java.net.InetSocketAddress
    import java.net.Proxy
    import java.net.ProxySelector
    import java.net.SocketAddress
    import java.net.URI
    import okhttp3.internal.format
    
    class RecordingProxySelector : ProxySelector() {
      @JvmField val proxies = mutableListOf<Proxy>()
    
      private val requestedUris = mutableListOf<URI>()
      private val failures = mutableListOf<String>()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskLogger.kt

          }
        }
      }
    }
    
    private fun Logger.log(
      task: Task,
      queue: TaskQueue,
      message: String,
    ) {
      fine("${queue.name} ${String.format("%-22s", message)}: ${task.name}")
    }
    
    /**
     * Returns a duration in the nearest whole-number units like "999 µs" or "  1 s ". This rounds 0.5
    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)
  7. okhttp/src/test/resources/okhttp3/internal/idn/README.md

    (RFC 3454). Fragments of this RFC are dumped into the files in this directory and parsed by
    `StringprepTablesReader` into a model that can be used at runtime.
    
    This format is chosen to make it easy to validate that these tables are consistent with the RFC.
    
    ```
    cd okhttp/src/test/resources/okhttp3/internal/idn/
    ls rfc3454.*.txt | xargs -n 1 -I {} bash -c "echo {} ; cat {}" > okhttp_tables.txt
    Plain Text
    - Registered: Fri Mar 29 11:42:11 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 618 bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/http2/FrameLogTest.kt

    import okhttp3.internal.http2.Http2.frameLog
    import okhttp3.internal.http2.Http2.frameLogWindowUpdate
    import org.junit.jupiter.api.Test
    
    class FrameLogTest {
      /** Real stream traffic applied to the log format.  */
      @Test
      fun exampleStream() {
        assertThat(frameLog(false, 0, 5, TYPE_SETTINGS, FLAG_NONE))
          .isEqualTo(">> 0x00000000     5 SETTINGS      ")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  9. okhttp-tls/README.md

        .sslSocketFactory(clientCertificates.sslSocketFactory(), clientCertificates.trustManager())
        .build();
    ```
    
    PEM files
    ---------
    
    You can encode a `HeldCertificate` in PEM format:
    
    ```java
    HeldCertificate heldCertificate = ...
    System.out.println(heldCertificate.certificatePem())
    ```
    
    ```
    -----BEGIN CERTIFICATE-----
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Dec 17 15:34:10 GMT 2023
    - 9.1K bytes
    - Viewed (1)
  10. LICENSE.txt

          replaced with your own identifying information. (Don't include
          the brackets!)  The text should be enclosed in the appropriate
          comment syntax for the file format. We also recommend that a
          file or class name and description of purpose be included on the
          same "printed page" as the copyright notice for easier
          identification within third-party archives.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jul 23 14:02:28 GMT 2012
    - 11.1K bytes
    - Viewed (0)
Back to top