You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -102,17 +102,20 @@ val client = ZHttpClient.Builder()
102
102
103
103
```
104
104
105
-
You can also specify the connection and the read time out periods : <br>
105
+
You can also specify the connection and the read time out periods and allow logging in console : <br>
106
106
107
107
```kotlin
108
108
// Setting the connection and the read time out periods to 20 seconds.
109
109
val client =ZHttpClient.Builder()
110
110
.baseUrl(BASE_URL)
111
111
.connectionTimeout(20000)
112
112
.readTimeout(20000)
113
+
.allowLogging(true)
113
114
.build()
114
115
115
116
```
117
+
> **Note:**
118
+
> There's no logger configured for now. Logging is just `println()` and `System.err.println()` for now until adding a logger for all platforms, and it's disabled by default.
116
119
117
120
You can also add some default headers, these headers will be automatically included on each request made with this client instance : <br>
0 commit comments