(maint) Document default i18n accept-language behavior of Clojure client
This commit is contained in:
parent
9c30001326
commit
d9b3207c9f
1 changed files with 3 additions and 1 deletions
|
@ -88,7 +88,9 @@ Each request function takes one argument, `url`, which is the URL against which
|
||||||
your HTTP request. Each request function also has a two-arity version with an extra parameter, `options`,
|
your HTTP request. Each request function also has a two-arity version with an extra parameter, `options`,
|
||||||
which is a map containing options for the HTTP request. These options are as follows:
|
which is a map containing options for the HTTP request. These options are as follows:
|
||||||
|
|
||||||
* `:headers`: optional; a map of headers
|
* `:headers`: optional; a map of headers. By default an 'accept-language' header
|
||||||
|
with a value of `puppetlabs.core.i18n/user-locale` will be added to the
|
||||||
|
request.
|
||||||
* `:body`: optional; may be a String or any type supported by clojure's reader
|
* `:body`: optional; may be a String or any type supported by clojure's reader
|
||||||
* `:decompress-body`: optional; if `true`, an 'accept-encoding' header with a value of
|
* `:decompress-body`: optional; if `true`, an 'accept-encoding' header with a value of
|
||||||
'gzip, deflate' will be added to the request, and the response will be
|
'gzip, deflate' will be added to the request, and the response will be
|
||||||
|
|
Loading…
Reference in a new issue