aboutsummaryrefslogtreecommitdiff
path: root/strings.go
diff options
context:
space:
mode:
authorGravatar tyltr <tylitianrui@126.com> 2021-09-06 18:06:21 +0800
committerGravatar GitHub <noreply@github.com> 2021-09-06 12:06:21 +0200
commitf0a21893b9800871d38181863b03692cb58678d9 (patch)
treee717b35338c620036bcc50e26ae2b0418d83fdb6 /strings.go
parentUpdate status.go (#1093) (diff)
downloadfasthttp-f0a21893b9800871d38181863b03692cb58678d9.tar.gz
fasthttp-f0a21893b9800871d38181863b03692cb58678d9.tar.bz2
fasthttp-f0a21893b9800871d38181863b03692cb58678d9.zip
feat: improve IsMethod (#1088)
* feat: improve bytesEqual * benchmark * nolint:unused * remove unused code * Update client.go Co-authored-by: Erik Dubbelboer <erik@dubbelboer.com> Co-authored-by: Erik Dubbelboer <erik@dubbelboer.com>
Diffstat (limited to 'strings.go')
-rw-r--r--strings.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/strings.go b/strings.go
index 2a3d553..42f73c5 100644
--- a/strings.go
+++ b/strings.go
@@ -24,16 +24,6 @@ var (
strResponseContinue = []byte("HTTP/1.1 100 Continue\r\n\r\n")
- 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(HeaderExpect)
strConnection = []byte(HeaderConnection)
strContentLength = []byte(HeaderContentLength)