Documentation ¶ Overview ¶ Package httpapi is the optional generic HTTP surface for a capkit runtime. Hosts can mount it directly or implement their own routes using the same contracts. Index ¶ type Handler func New(rt *runtime.Runtime) *Handler func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Handler ¶ type Handler struct { // contains filtered or unexported fields } func New ¶ func New(rt *runtime.Runtime) *Handler func (*Handler) ServeHTTP ¶ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) Source Files ¶ View all Source files httpapi.go Click to show internal directories. Click to hide internal directories.