server: Add Handler field and remove Handle methods
This commit is contained in:
parent
f3cd70612b
commit
6edde376c4
81
server.go
81
server.go
@ -23,6 +23,9 @@ type Server struct {
|
|||||||
// See net.Dial for details of the address format.
|
// See net.Dial for details of the address format.
|
||||||
Addr string
|
Addr string
|
||||||
|
|
||||||
|
// The Handler to invoke.
|
||||||
|
Handler Handler
|
||||||
|
|
||||||
// ReadTimeout is the maximum duration for reading the entire
|
// ReadTimeout is the maximum duration for reading the entire
|
||||||
// request.
|
// request.
|
||||||
//
|
//
|
||||||