aboutsummaryrefslogtreecommitdiff
path: root/strings.go
diff options
context:
space:
mode:
authorGravatar Aliaksandr Valialkin <valyala@gmail.com> 2016-01-05 14:05:07 +0200
committerGravatar Aliaksandr Valialkin <valyala@gmail.com> 2016-01-05 14:05:07 +0200
commit8a833965954cd4aabce4788ef436f670225a7982 (patch)
tree5d99165208ac862bf7d492315bc567493c1ee522 /strings.go
parentIssue #29: use time.UTC instead of time.LoadLocation, since this call may fai... (diff)
downloadfasthttp-8a833965954cd4aabce4788ef436f670225a7982.tar.gz
fasthttp-8a833965954cd4aabce4788ef436f670225a7982.tar.bz2
fasthttp-8a833965954cd4aabce4788ef436f670225a7982.zip
FS: added support for byte range requests
Diffstat (limited to 'strings.go')
-rw-r--r--strings.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/strings.go b/strings.go
index f696330..84253f9 100644
--- a/strings.go
+++ b/strings.go
@@ -44,6 +44,9 @@ var (
strLocation = []byte("Location")
strIfModifiedSince = []byte("If-Modified-Since")
strLastModified = []byte("Last-Modified")
+ strAcceptRanges = []byte("Accept-Ranges")
+ strRange = []byte("Range")
+ strContentRange = []byte("Content-Range")
strCookieExpires = []byte("expires")
strCookieDomain = []byte("domain")
@@ -61,4 +64,5 @@ var (
strPostArgsContentType = []byte("application/x-www-form-urlencoded")
strMultipartFormData = []byte("multipart/form-data")
strBoundary = []byte("boundary")
+ strBytes = []byte("bytes")
)