Insomnia-Script-SDK-Docs
Preparing search index...
CookieJar
Class CookieJar
Index
Constructors
constructor
Methods
clear
get
get
All
set
to
Insomnia
Cookie
Jar
unset
Constructors
constructor
new
CookieJar
(
jarName
:
string
,
cookies
?:
Cookie
[]
)
:
CookieJar
Parameters
jarName
:
string
Optional
cookies
:
Cookie
[]
Returns
CookieJar
Methods
clear
clear
(
url
:
string
,
cb
:
(
error
?:
null
|
Error
)
=>
void
)
:
void
Parameters
url
:
string
cb
:
(
error
?:
null
|
Error
)
=>
void
Returns
void
get
get
(
url
:
string
,
name
:
string
,
cb
:
(
error
?:
Error
,
cookie
?:
Cookie
)
=>
void
,
)
:
void
Parameters
url
:
string
name
:
string
cb
:
(
error
?:
Error
,
cookie
?:
Cookie
)
=>
void
Returns
void
get
All
getAll
(
url
:
string
,
cb
:
(
error
?:
Error
,
cookies
?:
Cookie
[]
)
=>
void
)
:
void
Parameters
url
:
string
cb
:
(
error
?:
Error
,
cookies
?:
Cookie
[]
)
=>
void
Returns
void
set
set
(
url
:
string
,
key
:
string
,
value
:
string
|
CookieOptions
,
cb
:
(
error
?:
Error
,
cookie
?:
Cookie
)
=>
void
,
)
:
void
Parameters
url
:
string
key
:
string
value
:
string
|
CookieOptions
cb
:
(
error
?:
Error
,
cookie
?:
Cookie
)
=>
void
Returns
void
to
Insomnia
Cookie
Jar
toInsomniaCookieJar
()
:
{
cookies
:
Partial
<
Cookie
>
[]
;
name
:
string
}
Returns
{
cookies
:
Partial
<
Cookie
>
[]
;
name
:
string
}
unset
unset
(
url
:
string
,
name
:
string
,
cb
:
(
error
?:
null
|
Error
)
=>
void
)
:
void
Parameters
url
:
string
name
:
string
cb
:
(
error
?:
null
|
Error
)
=>
void
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
clear
get
get
All
set
to
Insomnia
Cookie
Jar
unset
Insomnia-Script-SDK-Docs
Loading...