class HttpHeadersImpl implements HttpHeaders {

    @Override
    public Map<String, Cookie> getCookies() {
        List<String> values = nettyHttpHeaders.getAll(HttpHeaders.COOKIE);
        if (values == null || values.isEmpty()) {
            return Collections.emptyMap();
        }

        Map<String, Cookie> cookieMap = new HashMap<>();
        for (String value : values) {
            if (value == null) {
                continue;
            }
            Cookie cookie = Cookie.valueOf(value);
            cookieMap.put(cookie.getName(), cookie);
        }
        return cookieMap;
    }

    public  HttpHeadersImpl(io.netty.handler.codec.http.HttpHeaders httpHeaders);

}