diff options
author | Maxim Lebedev <toby3d@yandex.com> | 2019-05-06 20:54:49 +0500 |
---|---|---|
committer | Erik Dubbelboer <erik@dubbelboer.com> | 2019-05-06 17:54:49 +0200 |
commit | f544170d6384e251aa6657e55bac36c999c86e7a (patch) | |
tree | e55dc8af183dfe5e22a2191f96460ab75282a019 /strings.go | |
parent | Timing fixes (#564) (diff) | |
download | fasthttp-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.go | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -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") |