kubo/core/corehttp
Kevin Wallace fbd76ebb5b corehttp: ServeOption supports chaining muxes
Each option now additionally returns the mux to be used by future options. If
every options returns the mux it was passed, the current behavior is unchanged.

However, if the option returns an a new mux, it can mediate requests to handlers
provided by future options:

    return func(n *core.IpfsNode, mux *http.ServeMux) (*http.ServeMux, error) {
      childMux := http.NewServeMux()
      mux.Handle("/", handlerThatDelegatesToChildMux)
      return childMux, nil
    }

License: MIT
Signed-off-by: Kevin Wallace <kevin@pentabarf.net>
2015-02-08 11:27:06 -08:00
..
commands.go corehttp: ServeOption supports chaining muxes 2015-02-08 11:27:06 -08:00
corehttp.go corehttp: ServeOption supports chaining muxes 2015-02-08 11:27:06 -08:00
gateway_handler.go gateway: dont cache ipns paths 2015-02-07 10:10:05 -08:00
gateway.go corehttp: ServeOption supports chaining muxes 2015-02-08 11:27:06 -08:00
redirect.go corehttp: ServeOption supports chaining muxes 2015-02-08 11:27:06 -08:00
webui.go corehttp: allow all webui paths we published. 2015-02-06 07:30:42 -08:00