partial.js logo
Latest version
v1.3.1 (RC2)

Response.prototype


Response prototype is available in each node.js / partial.js script. This prototype is defined in Framework (index.js).

Properties


request.success {Boolean}
request.success;
return Boolean;

Is sent a response?

Methods


Response.prototype.cookie(name, value, [options])
Response.prototype.cookie(name, value, [options]);
return Response;

Set value into the cookie. For read cookies read Request.prototype. Default cookie path is '/'.

Cookie options:
{ Expires: Date, Domain: String, Path: String, Secure: Boolean, httpOnly: Boolean }