Handbook
Glossary
get-cookie ( request/response name -- cookie/f )
HTTP protocol objects
ยป
HTTP cookies
Prev:
<cookie> ( value name -- cookie )
Next:
put-cookie ( request/response cookie -- request/response )
Vocabulary
http
Inputs
request/response
a
request
or a
response
name
a
string
Outputs
cookie/f
a
cookie
or
f
Word description
Gets a named cookie from a request or response.
Definition
USING:
accessors
kernel
sequences
;
IN:
http
:
get-cookie
( request/response name -- cookie/f )
[
cookies>>
]
dip
[
]
curry
[
dip
name>>
=
]
curry
find
nip
;