diff options
author | Russ Cox <rsc@golang.org> | 2010-02-12 14:27:44 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-02-12 14:27:44 -0800 |
commit | 58d5d6f34f210f5b184b72f0ae4739525cc6e903 (patch) | |
tree | 42737271c5ab75f679a2b602ed666c7c73f17ff4 | |
parent | 5ab8f00bf8d2f133dfbed4d0440b05669516bc34 (diff) | |
download | go-58d5d6f34f210f5b184b72f0ae4739525cc6e903.tar.gz go-58d5d6f34f210f5b184b72f0ae4739525cc6e903.zip |
http: clarify ServeHTTP return
Fixes #580.
R=adg
CC=golang-dev
https://golang.org/cl/207086
-rw-r--r-- | src/pkg/http/server.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pkg/http/server.go b/src/pkg/http/server.go index f9771f9b41..f0b608ddeb 100644 --- a/src/pkg/http/server.go +++ b/src/pkg/http/server.go @@ -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) } |