-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from vincentjames501/multi-value-http-headers
Allow a header's value to be a seq of src to match clj-http and multi-valued header responses
- Loading branch information
Showing
3 changed files
with
34 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -185,8 +185,8 @@ request and returns a response. Convenience wrappers are provided for the http v | |
will depend on `:content`. When `:content` is a `String`, it will be `text/plain; charset=UTF-8` and when `:content` | ||
is a `File`, it will attempt to guess the best content type or fallback to `application/octet-stream`. | ||
|
||
`headers` Map of lower case strings to header values, concatenated with ',' when multiple values for a key. | ||
This is presently a slight incompatibility with clj-http, which accepts keyword keys and list values. | ||
`headers` Map of lower case strings to a header value. A header's value may be a string or a sequence of strings when | ||
there are multiple values for a given header. | ||
|
||
`basic-auth` Performs basic authentication (sending `Basic` authorization header). Accepts `{:user "user" :pass "pass"}` | ||
Note that basic auth can also be passed via the `url` (e.g. `http://user:[email protected]`) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters