Coverage Summary for Class: HttpStatusCodeUtilsKt (com.javiersc.network.either.internal.utils)

Class Class, % Method, % Branch, % Line, % Instruction, %
HttpStatusCodeUtilsKt 100% (1/1) 50% (1/2) 62.5% (5/8) 50% (1/2) 80% (32/40)


 package com.javiersc.network.either.internal.utils
 
 import io.ktor.http.Headers
 import io.ktor.http.HttpStatusCode
 import io.ktor.http.headersOf
 
 internal infix fun Int.toHttpStatusCode(message: String): HttpStatusCode {
     return HttpStatusCode.allStatusCodes.find { it.value == this } ?: HttpStatusCode(this, message)
 }
 
 @PublishedApi
 internal val emptyHeader: Headers
     get() = headersOf("Content-Length", listOf("0"))