Cookie Collection Provides an immutable collection of cookies objects. Adding or removing to a collection returns a *new* collection that you must retain. @template-implements \IteratorAggregate
Inherited | Abstract | Final | Static | Datatype | Header |
---|---|---|---|---|---|
addFromResponse(IResponse | addFromResponse(IResponse response, IRequest request) | ||||
DTraversable | DTraversable getIterator() | ||||
DCookieCollection | DCookieCollection createFromServerRequest(IServerRequest request) | ||||
ICookieCollection | ICookieCollection createFromHeader(string[] headerValues, Json[string] defaultAttributes = null) | ||||
size_t | size_t count() | ||||
auto | auto has(string cookieName) | ||||
void | void removeExpiredCookies(string hostToCheck, string pathToCheck) | ||||
void | void checkCookies(ICookie[] cookies) | ||||
DCookieCollection | DCookieCollection add(ICookie cookie) | ||||
bool | bool __isSet(string cookieName) | ||||
this(Json[string] | this(Json[string] cookies = null) | ||||
ICookie | ICookie get(string cookieName) | ||||
IRequest | IRequest addToRequest(IRequest request, Json[string] extraCookies = null) | ||||
Json[string] | Json[string] findMatchingCookies(string hhtpScheme, string hostToMatch, string pathToMatch) | ||||
ICookie | ICookie __get(string cookieName) | ||||
removeKey(string | removeKey(string cookieName) |