Because ServerResponse.HeadersBuilder::build uses a BiFunction, it does not allow for an exception to be thrown. We should introduce a separate functional interface that does allow for exceptions to be thrown.