public void setCookie(String name, String value) {
        Cookie cookie = new Cookie(name, value);
        setCookies(List.of(cookie));
    }
This method does not actually send the response as it
does not have access to responseHandler but
just sets the status. The methodName is misleading
for historical reasons.
container-core/src/main/java/com/yahoo/jdisc/http/filter/DiscFilterResponse.java