withHeaders

infix fun <Res, ResH> Res.withHeaders(headers: ResH): ApiResponse<Res, ResH>
infix fun <ResH> Int.withHeaders(headers: ResH): ApiResponse<Unit, ResH>

Creates an ApiResponse with the given headers.