Commit 58d5d6f3 authored by Russ Cox's avatar Russ Cox

http: clarify ServeHTTP return

Fixes #580.

R=adg
CC=golang-dev
https://golang.org/cl/207086
parent 5ab8f00b
......@@ -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)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment