/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
class CookiePrefixes final {
public: enum Prefix {
eSecure,
eHttp,
eHost,
eHostHttp,
};
// Returns true if `aString` begins with the `aPrefix` string. staticbool Has(Prefix aPrefix, const nsAString& aString);
// Returns true if `aString` begins with one of the supported prefixes. staticbool Has(const nsACString& aString);
// Reject cookies whose name starts with the magic prefixes from // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis // if they do not meet the criteria required by the prefix. staticbool Check(const CookieStruct& aCookieData, bool aSecureRequest);
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.