INNER CODE UNIT · Java

set

proninyaroslav/libretorrent · app/src/main/java/org/nanohttpd/NanoHTTPD.java:285

        public void set(String name, String value, int expires) {
            this.queue.add(new Cookie(name, value, Cookie.getHTTPTime(expires)));
        }
        /**
         * Internally used by the webserver to add all queued cookies into the
         * Response's HTTP Headers.
         *
         * @param response
         *            The Response object to which headers the queued cookies
         *            will be added.
         */
        public void unloadQueue(Response response) {
            for (Cookie cookie : this.queue) {
                response.addHeader("Set-Cookie", cookie.getHTTPHeader());
            }
        }
    }
    /**

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…