Handbook
Glossary
>post-data ( object -- post-data )
HTTP client
ยป
HTTP client post data
Vocabulary
http
.
client
.
post-data
Inputs
object
an
object
Outputs
post-data
a
post-data
or
f
Word description
Converts an object into a
post-data
tuple instance.
Definition
IN:
http.client.post-data
GENERIC:
>post-data
( object -- post-data )
Methods
USING:
accessors
assocs
http
http.client.post-data
kernel
;
M:
assoc
>post-data
"application/x-www-form-urlencoded"
<post-data>
swap
>>params
;
USING:
http.client.post-data
;
M:
f
>post-data
;
USING:
accessors
http
http.client.post-data
kernel
;
M:
object
>post-data
"application/octet-stream"
<post-data>
swap
>>data
;
USING:
http
http.client.post-data
;
M:
post-data
>post-data
;
USING:
accessors
http
http.client.post-data
io.encodings.string
io.encodings.utf8
kernel
strings
;
M:
string
>post-data
utf8
encode
"application/octet-stream"
<post-data>
swap
>>data
;