public static List<Cookie> decodeSetCookieHeader(HeaderFields headers) {
        List<String> cookies = headers.get(HttpHeaders.Names.SET_COOKIE);
        if (cookies == null) {
            return List.of();
        }
        List<Cookie> ret = new LinkedList<>();
        for (String cookie : cookies) {
            ret.add(Cookie.fromSetCookieHeader(cookie));
        }
        return ret;
    }
Helper for encoding/decoding cookies on request/response.

@author bjorncs
container-core/src/main/java/com/yahoo/jdisc/http/CookieHelper.java