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;
}
Aggregations