use of com.webpieces.http2.api.subparsers.ResponseCookie in project webpieces by deanhiller.
the class ResponseCreator method create.
private Http2Header create(RouterCookie c) {
ResponseCookie cookie = new ResponseCookie();
cookie.setName(c.name);
cookie.setValue(c.value);
cookie.setDomain(c.domain);
cookie.setPath(c.path);
cookie.setMaxAgeSeconds(c.maxAgeSeconds);
cookie.setSecure(c.isSecure);
cookie.setHttpOnly(c.isHttpOnly);
return httpSubParser.createHeader(cookie);
}
Aggregations