Insomnia-Script-SDK-Docs
Preparing search index...
CookieObject
Class CookieObject
Hierarchy (
View Summary
)
CookieList
CookieObject
Index
Constructors
constructor
Properties
_
kind
list
parent
type
Class
Methods
add
all
append
assimilate
clear
count
each
each
Parent
filter
find
get
has
idx
index
Of
insert
insert
After
jar
map
one
populate
prepend
reduce
remove
repopulate
to
Object
to
String
upsert
is
Cookie
List
is
Property
List
Constructors
constructor
new
CookieObject
(
cookieJar
:
null
|
CookieJar
)
:
CookieObject
Parameters
cookieJar
:
null
|
CookieJar
Returns
CookieObject
Properties
_
kind
_kind
:
string
= 'CookieList'
Protected
list
list
:
Cookie
[]
= []
Protected
parent
parent
:
undefined
|
Property
|
PropertyList
<
any
>
Protected
type
Class
typeClass
:
{
_index
?:
string
}
Methods
add
add
(
item
:
Cookie
)
:
void
Parameters
item
:
Cookie
Returns
void
all
all
()
:
{
[
k
:
string
]:
any
}
[]
Returns
{
[
k
:
string
]:
any
}
[]
append
append
(
item
:
Cookie
)
:
void
Parameters
item
:
Cookie
Returns
void
assimilate
assimilate
(
source
:
Cookie
[]
|
PropertyList
<
Cookie
>
,
prune
?:
boolean
)
:
void
Parameters
source
:
Cookie
[]
|
PropertyList
<
Cookie
>
Optional
prune
:
boolean
Returns
void
clear
clear
()
:
void
Returns
void
count
count
()
:
number
Returns
number
each
each
(
iterator
:
(
item
:
Cookie
)
=>
void
,
context
:
object
)
:
void
Parameters
iterator
:
(
item
:
Cookie
)
=>
void
context
:
object
Returns
void
each
Parent
eachParent
(
_iterator
:
(
parent
:
Property
,
prev
:
Property
)
=>
void
,
_context
?:
object
,
)
:
void
Parameters
_iterator
:
(
parent
:
Property
,
prev
:
Property
)
=>
void
Optional
_context
:
object
Returns
void
filter
filter
(
rule
:
(
item
:
Cookie
)
=>
boolean
,
context
:
object
)
:
Cookie
[]
Parameters
rule
:
(
item
:
Cookie
)
=>
boolean
context
:
object
Returns
Cookie
[]
find
find
(
rule
:
(
item
:
Cookie
)
=>
boolean
,
context
?:
object
)
:
undefined
|
Cookie
Parameters
rule
:
(
item
:
Cookie
)
=>
boolean
Optional
context
:
object
Returns
undefined
|
Cookie
get
get
(
key
:
string
)
:
undefined
|
Cookie
Parameters
key
:
string
Returns
undefined
|
Cookie
has
has
(
item
:
Cookie
,
_value
?:
any
)
:
boolean
Parameters
item
:
Cookie
Optional
_value
:
any
Returns
boolean
idx
idx
(
index
:
number
)
:
undefined
|
Cookie
Parameters
index
:
number
Returns
undefined
|
Cookie
index
Of
indexOf
(
item
:
string
|
Cookie
)
:
number
Parameters
item
:
string
|
Cookie
Returns
number
insert
insert
(
item
:
Cookie
,
before
?:
number
)
:
void
Parameters
item
:
Cookie
Optional
before
:
number
Returns
void
insert
After
insertAfter
(
item
:
Cookie
,
after
?:
number
)
:
void
Parameters
item
:
Cookie
Optional
after
:
number
Returns
void
jar
jar
()
:
CookieJar
Returns
CookieJar
map
map
(
iterator
:
(
item
:
Cookie
)
=>
any
,
context
:
object
)
:
any
[]
Parameters
iterator
:
(
item
:
Cookie
)
=>
any
context
:
object
Returns
any
[]
one
one
(
id
:
string
)
:
undefined
|
Cookie
Parameters
id
:
string
Returns
undefined
|
Cookie
populate
populate
(
items
:
Cookie
[]
)
:
void
Parameters
items
:
Cookie
[]
Returns
void
prepend
prepend
(
item
:
Cookie
)
:
void
Parameters
item
:
Cookie
Returns
void
reduce
reduce
(
iterator
:
(
acc
:
any
,
item
:
Cookie
)
=>
any
,
accumulator
:
any
,
context
:
object
,
)
:
any
Parameters
iterator
:
(
acc
:
any
,
item
:
Cookie
)
=>
any
accumulator
:
any
context
:
object
Returns
any
remove
remove
(
predicate
:
Cookie
|
(
(
item
:
Cookie
)
=>
boolean
)
,
context
:
object
)
:
void
Parameters
predicate
:
Cookie
|
(
(
item
:
Cookie
)
=>
boolean
)
context
:
object
Returns
void
repopulate
repopulate
(
items
:
Cookie
[]
)
:
void
Parameters
items
:
Cookie
[]
Returns
void
to
Object
toObject
(
_excludeDisabled
?:
boolean
,
_caseSensitive
?:
boolean
,
_multiValue
?:
boolean
,
_sanitizeKeys
?:
boolean
,
)
:
{
[
k
:
string
]:
any
}
[]
Parameters
Optional
_excludeDisabled
:
boolean
Optional
_caseSensitive
:
boolean
Optional
_multiValue
:
boolean
Optional
_sanitizeKeys
:
boolean
Returns
{
[
k
:
string
]:
any
}
[]
to
String
toString
()
:
string
Returns
string
upsert
upsert
(
item
:
Cookie
)
:
boolean
Parameters
item
:
Cookie
Returns
boolean
Static
is
Cookie
List
isCookieList
(
obj
:
object
)
:
boolean
Parameters
obj
:
object
Returns
boolean
Static
is
Property
List
isPropertyList
(
obj
:
object
)
:
boolean
Parameters
obj
:
object
Returns
boolean
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
_
kind
list
parent
type
Class
Methods
add
all
append
assimilate
clear
count
each
each
Parent
filter
find
get
has
idx
index
Of
insert
insert
After
jar
map
one
populate
prepend
reduce
remove
repopulate
to
Object
to
String
upsert
is
Cookie
List
is
Property
List
Insomnia-Script-SDK-Docs
Loading...