diff options
author | Aliaksandr Valialkin <valyala@gmail.com> | 2015-11-19 12:15:20 +0200 |
---|---|---|
committer | Aliaksandr Valialkin <valyala@gmail.com> | 2015-11-19 12:15:20 +0200 |
commit | ed68dfc5f614cd3b59a53e46c97e228a169a5157 (patch) | |
tree | eabd3ae2507e8015fbe60a7a9df908f2b2cbd048 /strings.go | |
parent | Fixed a typo in RequestCtx.SetConnectionClose() (diff) | |
download | fasthttp-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.go | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -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") |