Constructors
constructor
Parameters
Methods
clone
Parameters
Parameters
Returns void
Parameters
Returns void
cloneSync
Parameters
getCookieString
- getCookieString(currentUrl: string, options?: CookieJar.GetCookiesOptions): Promise<string>
- getCookieString(currentUrl: string, options: CookieJar.GetCookiesOptions, cb: ((err: null | Error, cookies: string) => void)): void
- getCookieString(currentUrl: string, cb: ((err: null | Error, cookies: string) => void)): void
Parameters
Returns Promise<string>
Parameters
currentUrl: string
cb: ((err: null | Error, cookies: string) => void)
- (err: null | Error, cookies: string): void
Parameters
err: null | Error
cookies: string
Returns void
Returns void
Parameters
currentUrl: string
cb: ((err: null | Error, cookies: string) => void)
- (err: null | Error, cookies: string): void
Parameters
err: null | Error
cookies: string
Returns void
Returns void
getCookieStringSync
Parameters
Returns string
getCookies
Parameters
Returns Promise<Cookie[]>
Parameters
currentUrl: string
cb: ((err: null | Error, cookies: Cookie[]) => void)
Returns void
Parameters
currentUrl: string
cb: ((err: null | Error, cookies: Cookie[]) => void)
Returns void
getCookiesSync
Parameters
getSetCookieStrings
- getSetCookieStrings(currentUrl: string, options?: CookieJar.GetCookiesOptions): Promise<string[]>
- getSetCookieStrings(currentUrl: string, options: CookieJar.GetCookiesOptions, cb: ((err: null | Error, cookies: string[]) => void)): void
- getSetCookieStrings(currentUrl: string, cb: ((err: null | Error, cookies: string[]) => void)): void
Parameters
Returns Promise<string[]>
Parameters
currentUrl: string
cb: ((err: null | Error, cookies: string[]) => void)
- (err: null | Error, cookies: string[]): void
Parameters
err: null | Error
cookies: string[]
Returns void
Returns void
Parameters
currentUrl: string
cb: ((err: null | Error, cookies: string[]) => void)
- (err: null | Error, cookies: string[]): void
Parameters
err: null | Error
cookies: string[]
Returns void
Returns void
getSetCookieStringsSync
Parameters
Returns string[]
removeAllCookies
- removeAllCookies(): Promise<void>
- removeAllCookies(cb: ((err: null | Error) => void)): void
Returns Promise<void>
Parameters
cb: ((err: null | Error) => void)
- (err: null | Error): void
Returns void
removeAllCookiesSync
- removeAllCookiesSync(): void
Returns void
serialize
Parameters
Returns void
serializeSync
setCookie
Parameters
cookieOrString: string | Cookie
currentUrl: string
Returns Promise<Cookie>
Parameters
cookieOrString: string | Cookie
currentUrl: string
cb: ((err: null | Error, cookie: Cookie) => void)
Returns void
Parameters
cookieOrString: string | Cookie
currentUrl: string
cb: ((err: null | Error, cookie: Cookie) => void)
Returns void
setCookieSync
Parameters
cookieOrString: string | Cookie
currentUrl: string
toJSON
Static deserialize
Parameters
Parameters
Returns void
Parameters
Returns void
Static deserializeSync
Parameters
Static fromJSON
Parameters