- header
- a set-cookie or set-cookie2 header.
Documentation for this section has not yet been entered.
Type Reason Java.Lang.IllegalArgumentException if the string does not comply with cookie specification, or the cookie name contains illegal characters, or reserved tokens of cookie specification appears Java.Lang.NullPointerException if header is null
Constructs a cookie from a string. The string should comply with set-cookie or set-cookie2 header format as specified in . Since set-cookies2 syntax allows more than one cookie definitions in one header, the returned object is a list.