Search in sources :

Example 1 with NettyCookies

use of io.micronaut.http.netty.cookies.NettyCookies in project micronaut-core by micronaut-projects.

the class NettyHttpRequest method getCookies.

@Override
public Cookies getCookies() {
    NettyCookies cookies = this.nettyCookies;
    if (cookies == null) {
        synchronized (this) {
            // double check
            cookies = this.nettyCookies;
            if (cookies == null) {
                cookies = new NettyCookies(getPath(), headers.getNettyHeaders(), conversionService);
                this.nettyCookies = cookies;
            }
        }
    }
    return cookies;
}
Also used : NettyCookies(io.micronaut.http.netty.cookies.NettyCookies)

Aggregations

NettyCookies (io.micronaut.http.netty.cookies.NettyCookies)1