Constructs a Content-Length
header.
Constructs a Content-Length
header.
The HTTP RFCs do not specify a maximum length. We have decided that Long.MaxValue
bytes ought to be good enough for anybody in order to avoid the irritations of BigInt
.
the length; throws an IllegalArgumentException
if negative
Constructs an Expires
header.
Constructs an Expires
header.
The HTTP RFCs indicate that Expires should be in the range of now to 1 year in the future. However, it is a usual practice to set it to the past of far in the future Thus any instant is in practice allowed
the date of expiration
Defined by http://www.w3.org/TR/CSP/
Defined by http://tools.ietf.org/html/rfc6797
Defined by http://tools.ietf.org/html/rfc7034#section-2.1