1. 08 Feb, 2015 3 commits
    • Kevin Wallace's avatar
      corehttp: tear off makeHandler, for tests · 794b7b7b
      Kevin Wallace authored
      License: MIT
      Signed-off-by: default avatarKevin Wallace <kevin@pentabarf.net>
      794b7b7b
    • Kevin Wallace's avatar
      gateway: attempt to resolve hostname to ipfs path · 084cdc3e
      Kevin Wallace authored
      This allows someone to host a static site by pointing a TXT record at their
      content in IPFS, and a CNAME record at an IPFS gateway.
      
      Note that such a setup technically violates RFC1912 (section 2.4; "A CNAME
      record is not allowed to coexist with any other data."), but tends to work in
      practice.
      
      We may want to consider changing the DNS->IPFS resolution scheme to allow this
      scenario to be RFC-compliant (e.g. store the mapping on a well-known subdomain
      to allow CNAME records on the domain itself).
      
      License: MIT
      Signed-off-by: default avatarKevin Wallace <kevin@pentabarf.net>
      084cdc3e
    • Kevin Wallace's avatar
      corehttp: ServeOption supports chaining muxes · fbd76ebb
      Kevin Wallace authored
      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: default avatarKevin Wallace <kevin@pentabarf.net>
      fbd76ebb
  2. 07 Feb, 2015 4 commits
  3. 06 Feb, 2015 9 commits
  4. 05 Feb, 2015 18 commits
  5. 04 Feb, 2015 6 commits