code: public static List<Cookie> cookies(){
          javax.servlet.http.Cookie[] servletCookies = RequestContext.getHttpRequest().getCookies();
          if(servletCookies == null)
              return new ArrayList<>();
  
          List<Cookie> cookies = new ArrayList<>();
          for (javax.servlet.http.Cookie servletCookie: servletCookies) {
              Cookie cookie = Cookie.fromServletCookie(servletCookie);
              cookies.add(cookie);
          }
          return cookies;
      }
docs: Returns collection of all cookies browser sent.
  
  @return collection of all cookies browser sent.