
tech.harmonysoft.oss.http.client.response.HttpResponse.kt Maven / Gradle / Ivy
package tech.harmonysoft.oss.http.client.response
data class HttpResponse(
val status: Int,
val statusText: String,
val body: T,
val headers: Map
) {
fun withBody(body: T): HttpResponse {
return HttpResponse(
status = status,
statusText = statusText,
body = body,
headers = headers
)
}
override fun toString(): String {
return "$status $statusText"
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy