Improved performance

This commit is contained in:
Eduard Urbach 2024-03-28 00:30:49 +01:00
parent 82dd83c701
commit a9b1b3f9c1
Signed by: eduard
GPG key ID: 49226B848C78F6C8
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