Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for formatFlags (0.29 sec)

  1. okhttp/src/test/java/okhttp3/internal/http2/FrameLogTest.kt

    import okhttp3.internal.http2.Http2.TYPE_PING
    import okhttp3.internal.http2.Http2.TYPE_PUSH_PROMISE
    import okhttp3.internal.http2.Http2.TYPE_SETTINGS
    import okhttp3.internal.http2.Http2.formatFlags
    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.  */
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2.kt

       */
      fun frameLog(
        inbound: Boolean,
        streamId: Int,
        length: Int,
        type: Int,
        flags: Int,
      ): String {
        val formattedType = formattedType(type)
        val formattedFlags = formatFlags(type, flags)
        val direction = if (inbound) "<<" else ">>"
        return format(
          "%s 0x%08x %5d %-13s %s",
          direction,
          streamId,
          length,
          formattedType,
          formattedFlags,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top