Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for req (0.13 sec)

  1. okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.kt

        // cat cert.cnf
        // [req]
        // distinguished_name=distinguished_name
        // req_extensions=req_extensions
        // x509_extensions=x509_extensions
        // [distinguished_name]
        // [req_extensions]
        // [x509_extensions]
        // subjectAltName=DNS:localhost.localdomain,DNS:localhost,IP:127.0.0.1
        //
        // $ openssl req -x509 -nodes -days 36500 -subj '/CN=localhost' -config ./cert.cnf \
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 40.3K bytes
    - Viewed (0)
  2. internal/grid/README.md

                case <-ctx.Done():
                    return nil
                case req, ok := <-in:
                    if !ok {
                        break
                    }           
                    // Do something with payload
                    out <- []byte("response")
    
                    // Return the request for reuse
                    grid.PutByteBuffer(req)
                }
            }
    Plain Text
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  3. docs/tls/README.md

    ```sh
    [req]
    distinguished_name = req_distinguished_name
    x509_extensions = v3_req
    prompt = no
    
    [req_distinguished_name]
    C = US
    ST = VA
    L = Somewhere
    O = MyOrg
    OU = MyOU
    CN = MyServerName
    
    [v3_req]
    subjectAltName = @alt_names
    
    [alt_names]
    IP.1 = 127.0.0.1
    DNS.1 = localhost
    ```
    
    Plain Text
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Sep 29 04:28:45 GMT 2022
    - 8.4K bytes
    - Viewed (0)
  4. okhttp-brotli/src/test/java/okhttp3/brotli/BrotliTestMain.kt

      sendRequest("https://httpbin.org/brotli", client)
      sendRequest("https://httpbin.org/gzip", client)
    }
    
    private fun sendRequest(
      url: String,
      client: OkHttpClient,
    ) {
      val req = Request.Builder().url(url).build()
    
      client.newCall(req).execute().use {
        println(it.body.string())
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.1K bytes
    - Viewed (3)
  5. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt

    import java.net.HttpURLConnection.HTTP_NOT_FOUND
    import java.net.HttpURLConnection.HTTP_NOT_IMPLEMENTED
    import java.net.HttpURLConnection.HTTP_NO_CONTENT
    import java.net.HttpURLConnection.HTTP_OK
    import java.net.HttpURLConnection.HTTP_REQ_TOO_LONG
    import java.util.Date
    import java.util.concurrent.TimeUnit.SECONDS
    import okhttp3.Request
    import okhttp3.Response
    import okhttp3.internal.http.HTTP_PERM_REDIRECT
    import okhttp3.internal.http.HTTP_TEMP_REDIRECT
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12K bytes
    - Viewed (0)
  6. regression-test/src/androidTest/java/okhttp/regression/compare/AndroidHttpEngineTest.kt

        engine: HttpEngine,
        executor: ExecutorService,
        url: String,
      ): CompletableFuture<Response> {
        val completableFuture = CompletableFuture<Response>()
        val buffer = Buffer()
    
        val req =
          engine.newUrlRequestBuilder(
            url,
            executor,
            object : Callback {
              override fun onRedirectReceived(
                request: UrlRequest,
                info: UrlResponseInfo,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 24 13:19:43 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  7. okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt

      }
    
      @Test
      fun decodeRsa512() {
        // The certificate + private key below was generated with OpenSSL. Never generate certificates
        // with MD5 or 512-bit RSA; that's insecure!
        //
        // openssl req \
        //   -x509 \
        //   -md5 \
        //   -nodes \
        //   -days 1 \
        //   -newkey rsa:512 \
        //   -keyout privateKey.key \
        //   -out certificate.crt
        val certificatePem =
          """
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 22.5K bytes
    - Viewed (0)
Back to top