mirror of
https://github.com/eolinker/apinto
synced 2025-11-01 12:32:38 +08:00
优化 newHttpContext 性能
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user