body
multimethod
(body request body-value)
Set the body of the request. The supplied body value can be a string or
a map of parameters to be url-encoded.
content-length
(content-length request length)
Set the content length of the request map.
content-type
(content-type request mime-type)
Set the content type of the request map.
json-body
(json-body request body-value)
Set the body of the request to a JSON structure. The supplied body value
should be a map of parameters to be converted to JSON.
multipart-body
(multipart-body request params)
Set the body of the request to a map of parameters encoded as a multipart
form. The parameters are supplied as a map. The keys should be keywords or
strings. The values should be maps that contain the following keys:
:value - a string, byte array, File or InputStream
:filename - the name of the file the value came from (optional)
:content-type - the content type of the value (optional)
The value may also be a string, byte array, File or InputStream instead of a
map. In that case, it will be treated as if it were a map with a single :value
key.