com.ufoscout.vertk.web.client.K.kt Maven / Gradle / Ivy
package com.ufoscout.vertk.web.client
import io.vertx.ext.web.client.HttpRequest
import io.vertx.ext.web.client.HttpResponse
fun HttpRequest.putHeaders(vararg headers: Pair): HttpRequest {
headers.forEach { this.putHeader(it.first, it.second) }
return this
}
inline fun HttpResponse.bodyAsJson(): T {
return this.bodyAsJson(T::class.java)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy