Search
Preparing search index...
The search index is not available
@foxy.io/sdk
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@foxy.io/sdk
<internal>
CookieJar
Class CookieJar
Hierarchy
CookieJar
CookieJar
Index
Constructors
constructor
Methods
clone
clone
Sync
get
Cookie
String
get
Cookie
String
Sync
get
Cookies
get
Cookies
Sync
get
Set
Cookie
Strings
get
Set
Cookie
Strings
Sync
remove
All
Cookies
remove
All
Cookies
Sync
serialize
serialize
Sync
set
Cookie
set
Cookie
Sync
toJSON
deserialize
deserialize
Sync
fromJSON
Constructors
constructor
new
Cookie
Jar
(
store
?:
Store
, options
?:
CookieJar
.
Options
)
:
CookieJar
Parameters
Optional
store:
Store
Optional
options:
CookieJar
.
Options
Returns
CookieJar
Methods
clone
clone
(
store
?:
Store
)
:
Promise
<
CookieJar
>
clone
(
store
:
Store
, cb
:
(
(
err
:
null
|
Error
, newJar
:
CookieJar
)
=>
void
)
)
:
void
clone
(
cb
:
(
(
err
:
null
|
Error
, newJar
:
CookieJar
)
=>
void
)
)
:
void
Parameters
Optional
store:
Store
Returns
Promise
<
CookieJar
>
Parameters
store:
Store
cb:
(
(
err
:
null
|
Error
, newJar
:
CookieJar
)
=>
void
)
(
err
:
null
|
Error
, newJar
:
CookieJar
)
:
void
Parameters
err:
null
|
Error
newJar:
CookieJar
Returns
void
Returns
void
Parameters
cb:
(
(
err
:
null
|
Error
, newJar
:
CookieJar
)
=>
void
)
(
err
:
null
|
Error
, newJar
:
CookieJar
)
:
void
Parameters
err:
null
|
Error
newJar:
CookieJar
Returns
void
Returns
void
clone
Sync
clone
Sync
(
store
?:
Store
)
:
CookieJar
Parameters
Optional
store:
Store
Returns
CookieJar
get
Cookie
String
get
Cookie
String
(
currentUrl
:
string
, options
?:
CookieJar
.
GetCookiesOptions
)
:
Promise
<
string
>
get
Cookie
String
(
currentUrl
:
string
, options
:
CookieJar
.
GetCookiesOptions
, cb
:
(
(
err
:
null
|
Error
, cookies
:
string
)
=>
void
)
)
:
void
get
Cookie
String
(
currentUrl
:
string
, cb
:
(
(
err
:
null
|
Error
, cookies
:
string
)
=>
void
)
)
:
void
Parameters
currentUrl:
string
Optional
options:
CookieJar
.
GetCookiesOptions
Returns
Promise
<
string
>
Parameters
currentUrl:
string
options:
CookieJar
.
GetCookiesOptions
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
get
Cookie
String
Sync
get
Cookie
String
Sync
(
currentUrl
:
string
, options
?:
CookieJar
.
GetCookiesOptions
)
:
string
Parameters
currentUrl:
string
Optional
options:
CookieJar
.
GetCookiesOptions
Returns
string
get
Cookies
get
Cookies
(
currentUrl
:
string
, options
?:
CookieJar
.
GetCookiesOptions
)
:
Promise
<
Cookie
[]
>
get
Cookies
(
currentUrl
:
string
, options
:
CookieJar
.
GetCookiesOptions
, cb
:
(
(
err
:
null
|
Error
, cookies
:
Cookie
[]
)
=>
void
)
)
:
void
get
Cookies
(
currentUrl
:
string
, cb
:
(
(
err
:
null
|
Error
, cookies
:
Cookie
[]
)
=>
void
)
)
:
void
Parameters
currentUrl:
string
Optional
options:
CookieJar
.
GetCookiesOptions
Returns
Promise
<
Cookie
[]
>
Parameters
currentUrl:
string
options:
CookieJar
.
GetCookiesOptions
cb:
(
(
err
:
null
|
Error
, cookies
:
Cookie
[]
)
=>
void
)
(
err
:
null
|
Error
, cookies
:
Cookie
[]
)
:
void
Parameters
err:
null
|
Error
cookies:
Cookie
[]
Returns
void
Returns
void
Parameters
currentUrl:
string
cb:
(
(
err
:
null
|
Error
, cookies
:
Cookie
[]
)
=>
void
)
(
err
:
null
|
Error
, cookies
:
Cookie
[]
)
:
void
Parameters
err:
null
|
Error
cookies:
Cookie
[]
Returns
void
Returns
void
get
Cookies
Sync
get
Cookies
Sync
(
currentUrl
:
string
, options
?:
CookieJar
.
GetCookiesOptions
)
:
Cookie
[]
Parameters
currentUrl:
string
Optional
options:
CookieJar
.
GetCookiesOptions
Returns
Cookie
[]
get
Set
Cookie
Strings
get
Set
Cookie
Strings
(
currentUrl
:
string
, options
?:
CookieJar
.
GetCookiesOptions
)
:
Promise
<
string
[]
>
get
Set
Cookie
Strings
(
currentUrl
:
string
, options
:
CookieJar
.
GetCookiesOptions
, cb
:
(
(
err
:
null
|
Error
, cookies
:
string
[]
)
=>
void
)
)
:
void
get
Set
Cookie
Strings
(
currentUrl
:
string
, cb
:
(
(
err
:
null
|
Error
, cookies
:
string
[]
)
=>
void
)
)
:
void
Parameters
currentUrl:
string
Optional
options:
CookieJar
.
GetCookiesOptions
Returns
Promise
<
string
[]
>
Parameters
currentUrl:
string
options:
CookieJar
.
GetCookiesOptions
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
get
Set
Cookie
Strings
Sync
get
Set
Cookie
Strings
Sync
(
currentUrl
:
string
, options
?:
CookieJar
.
GetCookiesOptions
)
:
string
[]
Parameters
currentUrl:
string
Optional
options:
CookieJar
.
GetCookiesOptions
Returns
string
[]
remove
All
Cookies
remove
All
Cookies
(
)
:
Promise
<
void
>
remove
All
Cookies
(
cb
:
(
(
err
:
null
|
Error
)
=>
void
)
)
:
void
Returns
Promise
<
void
>
Parameters
cb:
(
(
err
:
null
|
Error
)
=>
void
)
(
err
:
null
|
Error
)
:
void
Parameters
err:
null
|
Error
Returns
void
Returns
void
remove
All
Cookies
Sync
remove
All
Cookies
Sync
(
)
:
void
Returns
void
serialize
serialize
(
)
:
Promise
<
CookieJar
.
Serialized
>
serialize
(
cb
:
(
(
err
:
null
|
Error
, serializedObject
:
CookieJar
.
Serialized
)
=>
void
)
)
:
void
Returns
Promise
<
CookieJar
.
Serialized
>
Parameters
cb:
(
(
err
:
null
|
Error
, serializedObject
:
CookieJar
.
Serialized
)
=>
void
)
(
err
:
null
|
Error
, serializedObject
:
CookieJar
.
Serialized
)
:
void
Parameters
err:
null
|
Error
serializedObject:
CookieJar
.
Serialized
Returns
void
Returns
void
serialize
Sync
serialize
Sync
(
)
:
CookieJar
.
Serialized
Returns
CookieJar
.
Serialized
set
Cookie
set
Cookie
(
cookieOrString
:
string
|
Cookie
, currentUrl
:
string
, options
?:
CookieJar
.
SetCookieOptions
)
:
Promise
<
Cookie
>
set
Cookie
(
cookieOrString
:
string
|
Cookie
, currentUrl
:
string
, options
:
CookieJar
.
SetCookieOptions
, cb
:
(
(
err
:
null
|
Error
, cookie
:
Cookie
)
=>
void
)
)
:
void
set
Cookie
(
cookieOrString
:
string
|
Cookie
, currentUrl
:
string
, cb
:
(
(
err
:
null
|
Error
, cookie
:
Cookie
)
=>
void
)
)
:
void
Parameters
cookieOrString:
string
|
Cookie
currentUrl:
string
Optional
options:
CookieJar
.
SetCookieOptions
Returns
Promise
<
Cookie
>
Parameters
cookieOrString:
string
|
Cookie
currentUrl:
string
options:
CookieJar
.
SetCookieOptions
cb:
(
(
err
:
null
|
Error
, cookie
:
Cookie
)
=>
void
)
(
err
:
null
|
Error
, cookie
:
Cookie
)
:
void
Parameters
err:
null
|
Error
cookie:
Cookie
Returns
void
Returns
void
Parameters
cookieOrString:
string
|
Cookie
currentUrl:
string
cb:
(
(
err
:
null
|
Error
, cookie
:
Cookie
)
=>
void
)
(
err
:
null
|
Error
, cookie
:
Cookie
)
:
void
Parameters
err:
null
|
Error
cookie:
Cookie
Returns
void
Returns
void
set
Cookie
Sync
set
Cookie
Sync
(
cookieOrString
:
string
|
Cookie
, currentUrl
:
string
, options
?:
CookieJar
.
SetCookieOptions
)
:
Cookie
Parameters
cookieOrString:
string
|
Cookie
currentUrl:
string
Optional
options:
CookieJar
.
SetCookieOptions
Returns
Cookie
toJSON
toJSON
(
)
:
CookieJar
.
Serialized
Returns
CookieJar
.
Serialized
Static
deserialize
deserialize
(
serialized
:
string
|
CookieJar
.
Serialized
, store
?:
Store
)
:
Promise
<
CookieJar
>
deserialize
(
serialized
:
string
|
CookieJar
.
Serialized
, store
:
Store
, cb
:
(
(
err
:
null
|
Error
, object
:
CookieJar
)
=>
void
)
)
:
void
deserialize
(
serialized
:
string
|
CookieJar
.
Serialized
, cb
:
(
(
err
:
null
|
Error
, object
:
CookieJar
)
=>
void
)
)
:
void
Parameters
serialized:
string
|
CookieJar
.
Serialized
Optional
store:
Store
Returns
Promise
<
CookieJar
>
Parameters
serialized:
string
|
CookieJar
.
Serialized
store:
Store
cb:
(
(
err
:
null
|
Error
, object
:
CookieJar
)
=>
void
)
(
err
:
null
|
Error
, object
:
CookieJar
)
:
void
Parameters
err:
null
|
Error
object:
CookieJar
Returns
void
Returns
void
Parameters
serialized:
string
|
CookieJar
.
Serialized
cb:
(
(
err
:
null
|
Error
, object
:
CookieJar
)
=>
void
)
(
err
:
null
|
Error
, object
:
CookieJar
)
:
void
Parameters
err:
null
|
Error
object:
CookieJar
Returns
void
Returns
void
Static
deserialize
Sync
deserialize
Sync
(
serialized
:
string
|
CookieJar
.
Serialized
, store
?:
Store
)
:
CookieJar
Parameters
serialized:
string
|
CookieJar
.
Serialized
Optional
store:
Store
Returns
CookieJar
Static
fromJSON
fromJSON
(
string
:
string
)
:
CookieJar
Parameters
string:
string
Returns
CookieJar
Modules
<internal>
Cookie
Cookie
Jar
Backend
Core
Customer
Cookie
Jar
constructor
clone
clone
Sync
get
Cookie
String
get
Cookie
String
Sync
get
Cookies
get
Cookies
Sync
get
Set
Cookie
Strings
get
Set
Cookie
Strings
Sync
remove
All
Cookies
remove
All
Cookies
Sync
serialize
serialize
Sync
set
Cookie
set
Cookie
Sync
toJSON
deserialize
deserialize
Sync
fromJSON
Generated using
TypeDoc