@@ -115,48 +115,3 @@ export interface CookieSerializeOptions {
115
115
*/
116
116
secure ?: boolean | undefined ;
117
117
}
118
-
119
- /**
120
- * Additional parsing options
121
- */
122
- export interface CookieParseOptions {
123
- /**
124
- * Specifies a function that will be used to decode a cookie's value. Since
125
- * the value of a cookie has a limited character set (and must be a simple
126
- * string), this function can be used to decode a previously-encoded cookie
127
- * value into a JavaScript string or other object.
128
- *
129
- * The default function is the global `decodeURIComponent`, which will decode
130
- * any URL-encoded sequences into their byte representations.
131
- *
132
- * *Note* if an error is thrown from this function, the original, non-decoded
133
- * cookie value will be returned as the cookie's value.
134
- */
135
- decode ?( value : string ) : string ;
136
- }
137
-
138
- /**
139
- * Parse an HTTP Cookie header string and returning an object of all cookie
140
- * name-value pairs.
141
- *
142
- * @param str the string representing a `Cookie` header value
143
- * @param [options] object containing parsing options
144
- */
145
- export function parse (
146
- str : string ,
147
- options ?: CookieParseOptions ,
148
- ) : Record < string , string > ;
149
-
150
- /**
151
- * Serialize a cookie name-value pair into a `Set-Cookie` header string.
152
- *
153
- * @param name the name for the cookie
154
- * @param value value to set the cookie to
155
- * @param [options] object containing serialization options
156
- * @throws {TypeError } when `maxAge` options is invalid
157
- */
158
- export function serialize (
159
- name : string ,
160
- value : string ,
161
- options ?: CookieSerializeOptions ,
162
- ) : string ;
0 commit comments