aboutsummaryrefslogtreecommitdiff
path: root/strings.go
diff options
context:
space:
mode:
authorGravatar Maxim Lebedev <git@toby3d.me> 2019-05-27 20:04:22 +0500
committerGravatar Kirill Danshin <kirill@danshin.pro> 2019-05-28 18:04:24 +0300
commitd3715c361c6d8d227117caa9a7e6872498bf7283 (patch)
tree98932544f9e85d6e0693e1467195001a5ac955f7 /strings.go
parent:sparkles: Added headers keys constants (diff)
downloadfasthttp-d3715c361c6d8d227117caa9a7e6872498bf7283.tar.gz
fasthttp-d3715c361c6d8d227117caa9a7e6872498bf7283.tar.bz2
fasthttp-d3715c361c6d8d227117caa9a7e6872498bf7283.zip
:zap: Used Headers constants instead raw strings
Diffstat (limited to 'strings.go')
-rw-r--r--strings.go40
1 files changed, 20 insertions, 20 deletions
diff --git a/strings.go b/strings.go
index 17e5602..6fef4ea 100644
--- a/strings.go
+++ b/strings.go
@@ -32,26 +32,26 @@ var (
strTrace = []byte(MethodTrace)
strPatch = []byte(MethodPatch)
- strExpect = []byte("Expect")
- strConnection = []byte("Connection")
- strContentLength = []byte("Content-Length")
- strContentType = []byte("Content-Type")
- strDate = []byte("Date")
- strHost = []byte("Host")
- strReferer = []byte("Referer")
- strServer = []byte("Server")
- strTransferEncoding = []byte("Transfer-Encoding")
- strContentEncoding = []byte("Content-Encoding")
- strAcceptEncoding = []byte("Accept-Encoding")
- strUserAgent = []byte("User-Agent")
- strCookie = []byte("Cookie")
- strSetCookie = []byte("Set-Cookie")
- strLocation = []byte("Location")
- strIfModifiedSince = []byte("If-Modified-Since")
- strLastModified = []byte("Last-Modified")
- strAcceptRanges = []byte("Accept-Ranges")
- strRange = []byte("Range")
- strContentRange = []byte("Content-Range")
+ strExpect = []byte(HeaderExpect)
+ strConnection = []byte(HeaderConnection)
+ strContentLength = []byte(HeaderContentLength)
+ strContentType = []byte(HeaderContentType)
+ strDate = []byte(HeaderDate)
+ strHost = []byte(HeaderHost)
+ strReferer = []byte(HeaderReferer)
+ strServer = []byte(HeaderServer)
+ strTransferEncoding = []byte(HeaderTransferEncoding)
+ strContentEncoding = []byte(HeaderContentEncoding)
+ strAcceptEncoding = []byte(HeaderAcceptEncoding)
+ strUserAgent = []byte(HeaderUserAgent)
+ strCookie = []byte(HeaderCookie)
+ strSetCookie = []byte(HeaderSetCookie)
+ strLocation = []byte(HeaderLocation)
+ strIfModifiedSince = []byte(HeaderIfModifiedSince)
+ strLastModified = []byte(HeaderLastModified)
+ strAcceptRanges = []byte(HeaderAcceptRanges)
+ strRange = []byte(HeaderRange)
+ strContentRange = []byte(HeaderContentRange)
strCookieExpires = []byte("expires")
strCookieDomain = []byte("domain")