aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorGustaf Sjoberg <[email protected]>2017-03-22 09:18:43 +0100
committerLoïc Hoguin <[email protected]>2017-05-01 18:24:40 +0200
commit3f0b598edff1f411e31aca18ea96562b0d724257 (patch)
treefa1325e47e931805379aac116ed3065b328d1f58 /doc
parent0a181681223aead4043b2437fe493652db6e5f8a (diff)
downloadgun-3f0b598edff1f411e31aca18ea96562b0d724257.tar.gz
gun-3f0b598edff1f411e31aca18ea96562b0d724257.tar.bz2
gun-3f0b598edff1f411e31aca18ea96562b0d724257.zip
Add transform_header_name http option.
Diffstat (limited to 'doc')
-rw-r--r--doc/src/manual/gun.asciidoc6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/src/manual/gun.asciidoc b/doc/src/manual/gun.asciidoc
index 7b9ddd0..7c794ee 100644
--- a/doc/src/manual/gun.asciidoc
+++ b/doc/src/manual/gun.asciidoc
@@ -61,6 +61,12 @@ keepalive => pos_integer()::
empty line when the connection is idle. Gun only makes a best
effort here as servers usually have configurable limits to drop
idle connections. Defaults to 5000.
+transform_header_name => fun((LowercaseName :: binary()) -> TransformedName :: binary()) | undefined::
+ A function that will be applied to all header names before they
+ are sent to the server. Gun assumes that all header names are in
+ lower case. This function is useful if you, for example, need to
+ re-case header names in the event that the server incorrectly
+ considers header name case to be significant.
version => 'HTTP/1.1' | 'HTTP/1.0'::
HTTP version to use. Defaults to 'HTTP/1.1'.