Documentation
¶
Overview ¶
Page 194 Listing 9-4: The default handler implementation. The handlers.DefaultHandler function returns a function converted to the http.HandlerFunc type. The http.HandlerFunc type implements the http.Handler interface. Go programmers commonly convert a function with the signature func(w http.ResponseWriter, r *http.Request) to the http.HandlerFunc type so the function implements the http.Handler interface.
Pages 198-199 Listing 9-6: Methods map that dynamically routes requests to the right handler.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultHandler ¶
func DefaultMethodsHandler ¶
Pages 199-200 Listing 9-7: Default implementation of the Methods Handler
Types ¶
Click to show internal directories.
Click to hide internal directories.