mirror of https://github.com/golang/go.git
parent
71239b4f49
commit
a5e9b17a37
|
|
@ -674,7 +674,7 @@ The closure returned by <code>makeHandler</code> is a function that takes
|
|||
an <code>http.ResponseWriter</code> and <code>http.Request</code> (in other
|
||||
words, an <code>http.HandlerFunc</code>).
|
||||
The closure extracts the <code>title</code> from the request path, and
|
||||
validates it with the <code>TitleValidator</code> regexp. If the
|
||||
validates it with the <code>validPath</code> regexp. If the
|
||||
<code>title</code> is invalid, an error will be written to the
|
||||
<code>ResponseWriter</code> using the <code>http.NotFound</code> function.
|
||||
If the <code>title</code> is valid, the enclosed handler function
|
||||
|
|
|
|||
Loading…
Reference in New Issue