aboutsummaryrefslogtreecommitdiff
path: root/strings.go
diff options
context:
space:
mode:
authorGravatar Maxim Lebedev <toby3d@yandex.com> 2019-05-06 20:54:49 +0500
committerGravatar Erik Dubbelboer <erik@dubbelboer.com> 2019-05-06 17:54:49 +0200
commitf544170d6384e251aa6657e55bac36c999c86e7a (patch)
treee55dc8af183dfe5e22a2191f96460ab75282a019 /strings.go
parentTiming fixes (#564) (diff)
downloadfasthttp-f544170d6384e251aa6657e55bac36c999c86e7a.tar.gz
fasthttp-f544170d6384e251aa6657e55bac36c999c86e7a.tar.bz2
fasthttp-f544170d6384e251aa6657e55bac36c999c86e7a.zip
Added methods constants (#567)
* :sparkles: Added methods constants * :ok_hand: Fixed methods comment due to review changes
Diffstat (limited to 'strings.go')
-rw-r--r--strings.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/strings.go b/strings.go
index 6d83231..17e5602 100644
--- a/strings.go
+++ b/strings.go
@@ -22,15 +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")
- strConnect = []byte("CONNECT")
- strOptions = []byte("OPTIONS")
- strTrace = []byte("TRACE")
- strPatch = []byte("PATCH")
+ strGet = []byte(MethodGet)
+ strHead = []byte(MethodHead)
+ strPost = []byte(MethodPost)
+ strPut = []byte(MethodPut)
+ strDelete = []byte(MethodDelete)
+ strConnect = []byte(MethodConnect)
+ strOptions = []byte(MethodOptions)
+ strTrace = []byte(MethodTrace)
+ strPatch = []byte(MethodPatch)
strExpect = []byte("Expect")
strConnection = []byte("Connection")