applets-request
Version:
mini program axois request wechat alipay
23 lines (22 loc) • 642 B
TypeScript
/**
*
* @param {string} cookiesStr cookies字符串
* @param options
*/
export default function parseCookies(cookiesStr: any, options?: any): Record<string, string>;
/**
* Serialize data into a cookie header.
*
* Serialize the a name value pair into a cookie string suitable for
* http headers. An optional options object specified cookie parameters.
*
* serialize('foo', 'bar', { httpOnly: true })
* => "foo=bar; httpOnly"
*
* @param {string} name
* @param {string} val
* @param {object} [options]
* @return {string}
* @public
*/
export declare function serializeCookie(name: string, val: string, options?: any): string;