aboutsummaryrefslogtreecommitdiff
path: root/strings.go
diff options
context:
space:
mode:
authorGravatar Aliaksandr Valialkin <valyala@gmail.com> 2015-12-10 11:19:34 +0200
committerGravatar Aliaksandr Valialkin <valyala@gmail.com> 2015-12-10 11:19:34 +0200
commit495e130b8f1febd30666cf8b0c4ba571381f6cf2 (patch)
tree95916d34eed9507d2432a485cacac788c6eef8d3 /strings.go
parentSet response content-length before writing response header (diff)
downloadfasthttp-495e130b8f1febd30666cf8b0c4ba571381f6cf2.tar.gz
fasthttp-495e130b8f1febd30666cf8b0c4ba571381f6cf2.tar.bz2
fasthttp-495e130b8f1febd30666cf8b0c4ba571381f6cf2.zip
Issue #16: support 'Connection: keep-alive' header for non-http/1.1 requests and/or responses
Diffstat (limited to 'strings.go')
-rw-r--r--strings.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/strings.go b/strings.go
index 628af5e..96ed9c2 100644
--- a/strings.go
+++ b/strings.go
@@ -44,6 +44,8 @@ var (
strCookiePath = []byte("path")
strClose = []byte("close")
+ strKeepAlive = []byte("keep-alive")
+ strKeepAliveCamelCase = []byte("Keep-Alive")
strUpgrade = []byte("Upgrade")
strChunked = []byte("chunked")
strIdentity = []byte("identity")