class Requests {

    public static LiveHttpRequest doFinally(LiveHttpRequest request, Consumer<Optional<Throwable>> action) {
        return request.newBuilder()
                .body(it -> it.doOnEnd(action))
                .build();
    }

    private  Requests();

}