优化 newHttpContext 性能

This commit is contained in:
huangmengzhu
2022-12-01 18:12:25 +08:00
parent 2e59bbaea4
commit c9379f1793
9 changed files with 144 additions and 110 deletions

View File

@@ -11,6 +11,9 @@ type URIRequest struct {
uri *fasthttp.URI
}
func (ur *URIRequest) reset(uri *fasthttp.URI) {
ur.uri = uri
}
func (ur *URIRequest) Path() string {
return string(ur.uri.Path())
}