Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 76 for secret (0.21 sec)

  1. samples/slack/src/main/java/okhttp3/slack/SlackApi.java

    /**
     * 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
     * http://localhost:53203/oauth/}, passing the same port to this class’ constructor.
     */
    Java
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Fri Jul 06 19:30:55 GMT 2018
    - 4.4K bytes
    - Viewed (1)
  2. okhttp/src/main/kotlin/okhttp3/Authenticator.kt

     *   // If this is preemptive auth, use a preemptive credential.
     *   if (challenge.scheme().equalsIgnoreCase("OkHttp-Preemptive")) {
     *     return response.request().newBuilder()
     *         .header("Proxy-Authorization", "secret")
     *         .build();
     *   }
     * }
     * return null; // Didn't find a preemptive auth scheme.
     * ```
     *
     * ## Reactive Authentication
     *
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

            .socketFactory(
              object : DelegatingSocketFactory(getDefault()) {
                override fun configureSocket(socket: Socket): Socket {
                  socket.receiveBufferSize = socketBufferSize
                  socket.sendBufferSize = socketBufferSize
                  return socket
                }
              },
            )
            .writeTimeout(Duration.ofMillis(500))
            .build()
        server.start()
    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)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

      val connectionPool: RealConnectionPool,
      override val route: Route,
      /** The low-level TCP socket. */
      private var rawSocket: Socket?,
      /**
       * The application layer socket. Either an [SSLSocket] layered over [rawSocket], or [rawSocket]
       * itself if this connection does not use SSL.
       */
      private var socket: Socket?,
      private var handshake: Handshake?,
      private var protocol: Protocol?,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/http2/MockHttp2Peer.kt

      private fun readAndWriteFrames() {
        check(socket == null)
        val socket = serverSocket!!.accept()!!
        this.socket = socket
    
        // Bail out now if this instance was closed while waiting for the socket to accept.
        synchronized(this) {
          if (executor.isShutdown) {
            socket.close()
            return
          }
        }
        val outputStream = socket.getOutputStream()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  6. samples/unixdomainsockets/src/main/java/okhttp3/unixdomainsockets/UnixDomainSocketFactory.java

      }
    
      @Override public Socket createSocket(String host, int port) throws IOException {
        Socket result = createSocket();
    
        try {
          result.connect(new InetSocketAddress(host, port));
        } catch (IOException e) {
          result.close();
          throw e;
        }
        return result;
      }
    
      @Override public Socket createSocket(
    Java
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Dec 03 21:33:52 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  7. samples/guide/src/main/java/okhttp3/recipes/kt/Authenticate.kt

                  .build()
              }
            },
          )
          .build()
    
      fun run() {
        val request =
          Request.Builder()
            .url("http://publicobject.com/secrets/hellosecret.txt")
            .build()
    
        client.newCall(request).execute().use { response ->
          if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
          println(response.body.string())
        }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

        } else {
          eventListener.callEnd(this)
        }
        return result
      }
    
      /**
       * Remove this call from the connection's list of allocations. Returns a socket that the caller
       * should close.
       */
      internal fun releaseConnectionNoEvents(): Socket? {
        val connection = this.connection!!
        connection.lock.assertHeld()
    
        val calls = connection.calls
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 17.9K bytes
    - Viewed (2)
  9. okhttp/src/test/java/okhttp3/ServerTruncatesRequestTest.kt

        val eventListener =
          object : EventListener() {
            var socket: SSLSocket? = null
            var closed = false
    
            override fun connectionAcquired(
              call: Call,
              connection: Connection,
            ) {
              socket = connection.socket() as SSLSocket
            }
    
            override fun requestHeadersStart(call: Call) {
              if (closed) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/platform/Platform.kt

        return session.requestedServerNames.mapNotNull { (it as? SNIHostName)?.asciiName }
      }
    
      @Throws(IOException::class)
      open fun connectSocket(
        socket: Socket,
        address: InetSocketAddress,
        connectTimeout: Int,
      ) {
        socket.connect(address, connectTimeout)
      }
    
      open fun log(
        message: String,
        level: Int = INFO,
        t: Throwable? = null,
      ) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.8K bytes
    - Viewed (1)
Back to top