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 | 8727a2ad9bd401e08da90ecc5a700c135dfe169a (patch) | |
tree | 0a25e8c1edba4e08e3ef05678f5459977a671dc6 /src/pkg | |
parent | 204981ee3318598e010e0b2f767de1dec48371c9 (diff) | |
download | golang-8727a2ad9bd401e08da90ecc5a700c135dfe169a.tar.gz |
http: clarify ServeHTTP return
Fixes issue 580.
R=adg
CC=golang-dev
http://codereview.appspot.com/207086
Diffstat (limited to 'src/pkg')
-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 f9771f9b4..f0b608dde 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) } |