NewHandler initializes the request handler with a driver implementation.
(driver Driver)
| 213 | |
| 214 | // NewHandler initializes the request handler with a driver implementation. |
| 215 | func NewHandler(driver Driver) *Handler { |
| 216 | h := &Handler{driver, sdk.NewHandler(manifest)} |
| 217 | h.initMux() |
| 218 | return h |
| 219 | } |
| 220 | |
| 221 | func (h *Handler) initMux() { |
| 222 | h.HandleFunc(capabilitiesPath, func(w http.ResponseWriter, r *http.Request) { |