aboutsummaryrefslogtreecommitdiff
path: root/strings.go
diff options
context:
space:
mode:
authorGravatar toyblocks <spica.toyblocks@gmail.com> 2018-03-12 06:49:33 +0900
committerGravatar toyblocks <spica.toyblocks@gmail.com> 2018-03-12 07:00:21 +0900
commita84dc2dc0e695384e3ecaebba0a4598524366445 (patch)
tree26f12f7e4112517b3aafea2469e4e85abd8455db /strings.go
parentadded missing byte 0xFF into hex2intTable. This fixes panic when decoding spe... (diff)
downloadfasthttp-a84dc2dc0e695384e3ecaebba0a4598524366445.tar.gz
fasthttp-a84dc2dc0e695384e3ecaebba0a4598524366445.tar.bz2
fasthttp-a84dc2dc0e695384e3ecaebba0a4598524366445.zip
Add missing http methods
Add support for 'CONNECT', 'OPTIONS', 'TRACE' and 'PATCH'
Diffstat (limited to 'strings.go')
-rw-r--r--strings.go14
1 files changed, 9 insertions, 5 deletions
diff --git a/strings.go b/strings.go
index ebfa3ed..7b7e53e 100644
--- a/strings.go
+++ b/strings.go
@@ -22,11 +22,15 @@ var (
strResponseContinue = []byte("HTTP/1.1 100 Continue\r\n\r\n")
- strGet = []byte("GET")
- strHead = []byte("HEAD")
- strPost = []byte("POST")
- strPut = []byte("PUT")
- strDelete = []byte("DELETE")
+ strGet = []byte("GET")
+ strHead = []byte("HEAD")
+ strPost = []byte("POST")
+ strPut = []byte("PUT")
+ strDelete = []byte("DELETE")
+ strConnect = []byte("CONNECT")
+ strOptions = []byte("OPTIONS")
+ strTrace = []byte("TRACE")
+ strPatch = []byte("PATCH")
strExpect = []byte("Expect")
strConnection = []byte("Connection")