aboutsummaryrefslogtreecommitdiffstats
path: root/Cargo.toml
diff options
context:
space:
mode:
authorTeddy Wing2020-06-23 03:39:52 +0200
committerTeddy Wing2020-06-23 03:39:52 +0200
commitede3004cf563e4d46c0e8afa5fd1e18732de6c69 (patch)
tree9022deef9946430d4d9e4149db21efaed940d5ad /Cargo.toml
parent31c78b8655ed464c0575742b0f3f6c5daa179f97 (diff)
downloadfastcgi-conduit-ede3004cf563e4d46c0e8afa5fd1e18732de6c69.tar.bz2
From<fastcgi::Request>: Convert HTTP headers
The HTTP headers from `fastcgi` come with keys in the following format: "HTTP_USER_AGENT", "HTTP_ACCEPT_LANGUAGE". Since most headers use an uppercase first letter of a word with hyphen word separators, make the conversion by: 1. Removing the `HTTP_` prefix 2. Changing `_` to `-` 3. Making the first letter of each word uppercase using the Inflector crate
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml1
1 files changed, 1 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 69249f6..fb3da9b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -6,3 +6,4 @@ edition = "2018"
[dependencies]
fastcgi = "1.0.0"
http = "0.2.1"
+Inflector = "0.11.4"