aboutsummaryrefslogtreecommitdiff
path: root/strings.go
diff options
context:
space:
mode:
authorGravatar Aliaksandr Valialkin <valyala@gmail.com> 2015-12-25 12:26:34 +0200
committerGravatar Aliaksandr Valialkin <valyala@gmail.com> 2015-12-25 12:26:34 +0200
commitedcfdbcec9a77959cd89c16121ef52283dc24673 (patch)
tree963ccc699416eb4484112c7bdb5095bee72432d6 /strings.go
parentReduced test time for TestClientManyServers (diff)
downloadfasthttp-edcfdbcec9a77959cd89c16121ef52283dc24673.tar.gz
fasthttp-edcfdbcec9a77959cd89c16121ef52283dc24673.tar.bz2
fasthttp-edcfdbcec9a77959cd89c16121ef52283dc24673.zip
Issue #14: added support for response body compression
Diffstat (limited to 'strings.go')
-rw-r--r--strings.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/strings.go b/strings.go
index ea7943c..6dc42fb 100644
--- a/strings.go
+++ b/strings.go
@@ -32,6 +32,7 @@ var (
strReferer = []byte("Referer")
strServer = []byte("Server")
strTransferEncoding = []byte("Transfer-Encoding")
+ strContentEncoding = []byte("Content-Encoding")
strUserAgent = []byte("User-Agent")
strCookie = []byte("Cookie")
strSetCookie = []byte("Set-Cookie")
@@ -44,6 +45,8 @@ var (
strCookiePath = []byte("path")
strClose = []byte("close")
+ strGzip = []byte("gzip")
+ strDeflate = []byte("deflate")
strKeepAlive = []byte("keep-alive")
strKeepAliveCamelCase = []byte("Keep-Alive")
strUpgrade = []byte("Upgrade")