@swaggerexpert/cookie
Version:
RFC 6265 compliant cookie parser, validator and serializer.
14 lines (13 loc) • 517 B
JavaScript
;
exports.__esModule = true;
exports.default = void 0;
var _apgLite = require("../../../apg-lite.cjs");
const cookiePair = (state, chars, phraseIndex, phraseLength, data) => {
if (state === _apgLite.identifiers.SEM_PRE) {
data.push(['cookie-pair', _apgLite.utilities.charsToString(chars, phraseIndex, phraseLength)]);
} else if (state === _apgLite.identifiers.SEM_POST) {
/* not used in this example */
}
return _apgLite.identifiers.SEM_OK;
};
var _default = exports.default = cookiePair;