Improved performance
This commit is contained in:
parent
82dd83c701
commit
a9b1b3f9c1
2 changed files with 19 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue