aboutsummaryrefslogtreecommitdiff
path: root/strings.go
diff options
context:
space:
mode:
authorGravatar Aliaksandr Valialkin <valyala@gmail.com> 2015-12-25 16:11:20 +0200
committerGravatar Aliaksandr Valialkin <valyala@gmail.com> 2015-12-25 16:11:20 +0200
commit3284c3e6711972e6934d122a10bcaec8bf967026 (patch)
tree6ab57ef2ef6e539009e4ce3ff7e75d1043d871b5 /strings.go
parentMicrooptimization for RequestHeader.IsGet() (diff)
downloadfasthttp-3284c3e6711972e6934d122a10bcaec8bf967026.tar.gz
fasthttp-3284c3e6711972e6934d122a10bcaec8bf967026.tar.bz2
fasthttp-3284c3e6711972e6934d122a10bcaec8bf967026.zip
Pull request #24: added support for '100 Continue' responses and 'Expect: 100-continue' requests. Kudos to @celer
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 02132a1..5863f66 100644
--- a/strings.go
+++ b/strings.go
@@ -19,11 +19,14 @@ var (
strColonSlashSlash = []byte("://")
strColonSpace = []byte(": ")
+ strResponseContinue = []byte("HTTP/1.1 100 Continue\r\n\r\n")
+
strGet = []byte("GET")
strHead = []byte("HEAD")
strPost = []byte("POST")
strPut = []byte("PUT")
+ strExpect = []byte("Expect")
strConnection = []byte("Connection")
strContentLength = []byte("Content-Length")
strContentType = []byte("Content-Type")
@@ -53,6 +56,7 @@ var (
strUpgrade = []byte("Upgrade")
strChunked = []byte("chunked")
strIdentity = []byte("identity")
+ str100Continue = []byte("100-continue")
strPostArgsContentType = []byte("application/x-www-form-urlencoded")
strMultipartFormData = []byte("multipart/form-data")
strBoundary = []byte("boundary")