We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cc6761 commit 1094b59Copy full SHA for 1094b59
templates/android/library/src/main/java/io/package/Client.kt.twig
@@ -473,6 +473,14 @@ class Client @JvmOverloads constructor(
473
it.cancel(error)
474
return
475
}
476
+
477
+ val warnings = response.headers["x-{{ spec.title | lower }}-warning"]
478
+ if (warnings != null) {
479
+ warnings.split(";").forEach { warning ->
480
+ System.out.println("Warning: $warning")
481
+ }
482
483
484
when {
485
responseType == Boolean::class.java -> {
486
it.resume(true as T)
0 commit comments