Documentation ¶
Overview ¶
Package http provides adapters to render gomponents in http handlers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Adapt ¶
func Adapt(h Handler) http.HandlerFunc
Adapt a Handler to a http.Handlerfunc. The returned Node is rendered to the ResponseWriter, in both normal and error cases. If the Handler returns an error, and it implements a "StatusCode() int" method, that HTTP status code is sent in the response header. Otherwise, the status code http.StatusInternalServerError (500) is used.
Types ¶
Click to show internal directories.
Click to hide internal directories.