use of io.micronaut.servlet.http.ServletCookies in project micronaut-gcp by micronaut-projects.
the class GoogleFunctionHttpRequest method getCookies.
@NonNull
@Override
public Cookies getCookies() {
ServletCookies cookies = this.cookies;
if (cookies == null) {
synchronized (this) {
// double check
cookies = this.cookies;
if (cookies == null) {
cookies = new ServletCookies(getPath(), getHeaders(), ConversionService.SHARED);
this.cookies = cookies;
}
}
}
return cookies;
}
Aggregations