Improved performance

This commit is contained in:
2024-03-28 00:30:49 +01:00
parent c3bb8336a3
commit 9cbbd3957a
2 changed files with 19 additions and 14 deletions

View File

@ -1,6 +1,10 @@
package web
import "git.akyoto.dev/go/router"
import (
"bufio"
"git.akyoto.dev/go/router"
)
// Request is an interface for HTTP requests.
type Request interface {
@ -14,6 +18,7 @@ type Request interface {
// request represents the HTTP request used in the given context.
type request struct {
reader *bufio.Reader
scheme string
host string
method string