Handbook
Glossary
query-param ( url key -- value )
Furnace framework
ยป
URL objects
Prev:
ensure-port ( url -- url' )
Next:
set-query-param ( url value key -- url )
Vocabulary
urls
Inputs
url
an
url
key
a
string
Outputs
value
a
string
or
f
Word description
Outputs the URL-decoded value of a URL query parameter.
Examples
USING: io urls ; URL" http://food.com/calories?item=French+Fries" "item" query-param print
French Fries
Definition
USING:
accessors
assocs
kernel
;
IN:
urls
:
query-param
( url key -- value )
swap
query>>
at
;