diff options
author | Aliaksandr Valialkin <valyala@gmail.com> | 2015-12-25 16:11:20 +0200 |
---|---|---|
committer | Aliaksandr Valialkin <valyala@gmail.com> | 2015-12-25 16:11:20 +0200 |
commit | 3284c3e6711972e6934d122a10bcaec8bf967026 (patch) | |
tree | 6ab57ef2ef6e539009e4ce3ff7e75d1043d871b5 /strings.go | |
parent | Microoptimization for RequestHeader.IsGet() (diff) | |
download | fasthttp-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.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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") |