diff options
author | Maxim Lebedev <git@toby3d.me> | 2019-05-27 20:04:22 +0500 |
---|---|---|
committer | Kirill Danshin <kirill@danshin.pro> | 2019-05-28 18:04:24 +0300 |
commit | d3715c361c6d8d227117caa9a7e6872498bf7283 (patch) | |
tree | 98932544f9e85d6e0693e1467195001a5ac955f7 /strings.go | |
parent | :sparkles: Added headers keys constants (diff) | |
download | fasthttp-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.go | 40 |
1 files changed, 20 insertions, 20 deletions
@@ -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") |