Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for configureLogging (0.15 sec)

  1. okcurl/src/main/kotlin/okhttp3/curl/logging/LoggingUtil.kt

    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,
        ) {
          if (debug || showHttp2Frames || sslDebug) {
            if (sslDebug) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 2.7K bytes
    - Viewed (1)
  2. okcurl/src/main/kotlin/okhttp3/curl/Main.kt

      val url: String? by argument(name = "url", help = "Remote resource URL")
    
      var client: Call.Factory? = null
    
      override fun run() {
        LoggingUtil.configureLogging(debug = verbose, showHttp2Frames = showHttp2Frames, sslDebug = sslDebug)
    
        commonRun()
      }
    
      fun createRequest(): Request = commonCreateRequest()
    
      fun createClient(): Call.Factory {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.7K bytes
    - Viewed (1)
Back to top