aboutsummaryrefslogtreecommitdiff
path: root/strings.go
diff options
context:
space:
mode:
authorGravatar Aliaksandr Valialkin <valyala@gmail.com> 2015-11-19 12:15:20 +0200
committerGravatar Aliaksandr Valialkin <valyala@gmail.com> 2015-11-19 12:15:20 +0200
commited68dfc5f614cd3b59a53e46c97e228a169a5157 (patch)
treeeabd3ae2507e8015fbe60a7a9df908f2b2cbd048 /strings.go
parentFixed a typo in RequestCtx.SetConnectionClose() (diff)
downloadfasthttp-ed68dfc5f614cd3b59a53e46c97e228a169a5157.tar.gz
fasthttp-ed68dfc5f614cd3b59a53e46c97e228a169a5157.tar.bz2
fasthttp-ed68dfc5f614cd3b59a53e46c97e228a169a5157.zip
Optimization: do not parse full requests headers on ConnectionClose and Header calls. This should speed up common case with GET requests on the server
Diffstat (limited to 'strings.go')
-rw-r--r--strings.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/strings.go b/strings.go
index b3208ee..d301c75 100644
--- a/strings.go
+++ b/strings.go
@@ -23,7 +23,6 @@ var (
strPost = []byte("POST")
strConnection = []byte("Connection")
- strConnectionClose = []byte("Connection: close")
strContentLength = []byte("Content-Length")
strContentType = []byte("Content-Type")
strDate = []byte("Date")