Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 80 for Http2 (1.34 sec)

  1. docs/contribute/debug_logging.md

    ```
    OkHttpDebugLogging.enableHttp2()
    OkHttpDebugLogging.enableTaskRunner()
    ```
    
    ### Activating on Android
    
    ```
    $ adb shell setprop log.tag.okhttp.Http2 DEBUG
    $ adb shell setprop log.tag.okhttp.TaskRunner DEBUG
    $ adb logcat '*:E' 'okhttp.Http2:D' 'okhttp.TaskRunner:D'
    ```
    
    ### HTTP/2 Frame Logging
    
    This logs inbound (`<<`) and outbound (`>>`) frames for HTTP/2 connections.
    
    ```
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 16:35:36 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

          CommandLine -> {
            return ProcessBuilder(
              "tshark",
              "-l",
              "-V",
              "-o",
              "tls.keylog_file:$logFile",
              "-Y",
              "http2",
              "-O",
              "http2,tls",
            ).redirectInput(File("/dev/null"))
              .redirectOutput(Redirect.INHERIT)
              .redirectError(Redirect.INHERIT)
              .start()
          }
          Gui -> {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat May 10 11:15:14 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpDebugLogging.kt

    import kotlin.reflect.KClass
    import okhttp3.internal.concurrent.TaskRunner
    import okhttp3.internal.http2.Http2
    
    object OkHttpDebugLogging {
      // Keep references to loggers to prevent their configuration from being GC'd.
      private val configuredLoggers = CopyOnWriteArraySet<Logger>()
    
      fun enableHttp2() = enable(Http2::class)
    
      fun enableTaskRunner() = enable(TaskRunner::class)
    
      fun logHandler() =
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. okcurl/src/main/kotlin/okhttp3/curl/logging/LoggingUtil.kt

    import java.util.logging.ConsoleHandler
    import java.util.logging.Level
    import java.util.logging.LogManager
    import java.util.logging.LogRecord
    import java.util.logging.Logger
    import okhttp3.internal.http2.Http2
    
    class LoggingUtil {
      companion object {
        private val activeLoggers = mutableListOf<Logger>()
    
        fun configureLogging(
          debug: Boolean,
          showHttp2Frames: Boolean,
          sslDebug: Boolean,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Apr 05 03:30:42 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealConnection.kt

    import okhttp3.internal.http1.Http1ExchangeCodec
    import okhttp3.internal.http2.ConnectionShutdownException
    import okhttp3.internal.http2.ErrorCode
    import okhttp3.internal.http2.FlowControlListener
    import okhttp3.internal.http2.Http2Connection
    import okhttp3.internal.http2.Http2ExchangeCodec
    import okhttp3.internal.http2.Http2Stream
    import okhttp3.internal.http2.Settings
    import okhttp3.internal.http2.StreamResetException
    import okhttp3.internal.isHealthy
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/ConnectionPoolTest.kt

    import okhttp3.internal.concurrent.TaskRunner.RealBackend
    import okhttp3.internal.concurrent.withLock
    import okhttp3.internal.http2.Http2
    import okhttp3.internal.http2.Http2Connection
    import okhttp3.internal.http2.Http2ConnectionTest
    import okhttp3.internal.http2.MockHttp2Peer
    import okhttp3.internal.http2.Settings
    import org.junit.jupiter.api.AfterEach
    import org.junit.jupiter.api.Disabled
    import org.junit.jupiter.api.Test
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/ErrorCode.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.internal.http2
    
    /** http://tools.ietf.org/html/draft-ietf-httpbis-http2-17#section-7 */
    enum class ErrorCode constructor(
      val httpCode: Int,
    ) {
      /** Not an error!  */
      NO_ERROR(0),
    
      PROTOCOL_ERROR(1),
    
      INTERNAL_ERROR(2),
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  8. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

    import okhttp3.Request
    import okhttp3.TlsVersion
    import okhttp3.brotli.Brotli
    import okhttp3.dnsoverhttps.DnsOverHttps
    import okhttp3.internal.concurrent.TaskRunner
    import okhttp3.internal.http2.Http2
    import okhttp3.internal.platform.Android10Platform
    import okhttp3.internal.platform.AndroidPlatform
    import okhttp3.internal.platform.Platform
    import okhttp3.internal.platform.PlatformRegistry
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 14:12:28 UTC 2025
    - 29K bytes
    - Viewed (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/StreamResetException.kt

     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.internal.http2
    
    import java.io.IOException
    
    /** Thrown when an HTTP/2 stream is canceled without damage to the socket that carries it. */
    class StreamResetException(
      @JvmField val errorCode: ErrorCode,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 869 bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/ConnectionShutdownException.kt

     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.internal.http2
    
    import java.io.IOException
    
    /**
     * Thrown when an HTTP/2 connection is shutdown (either explicitly or if the peer has sent a GOAWAY
     * frame) and an attempt is made to use the connection.
     */
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 875 bytes
    - Viewed (0)
Back to top