mirror of
https://github.com/golang/go
synced 2024-11-22 02:34:40 -07:00
http: clarify ServeHTTP return
Fixes #580. R=adg CC=golang-dev https://golang.org/cl/207086
This commit is contained in:
parent
5ab8f00bf8
commit
58d5d6f34f
@ -32,6 +32,11 @@ var (
|
||||
// Objects implementing the Handler interface can be
|
||||
// registered to serve a particular path or subtree
|
||||
// in the HTTP server.
|
||||
//
|
||||
// ServeHTTP should write reply headers and data to the Conn
|
||||
// and then return. Returning signals that the request is finished
|
||||
// and that the HTTP server can move on to the next request on
|
||||
// the connection.
|
||||
type Handler interface {
|
||||
ServeHTTP(*Conn, *Request)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user