code: func (m *Main) openHTTPServer() error {
  	h := server.NewHandler(false, m.peers)
  	h.Main = m
  	h.Peers = m.peers
  	// If we have no store then start the handler in proxy mode
  	if m.store == nil {
  		h.Proxy.Store(true)
  	} else {
  		h.Store = m.store
  	}
  	m.handler = h
  	m.httpServer = &http.Server{Handler: h}
  
  	// Create listener via mux
  	// HTTP listens to all methods: CONNECT, DELETE, GET, HEAD, OPTIONS, POST, PUT, TRACE.
  	httpLn := m.mux.Listen([]byte{'C', 'D', 'G', 'H', 'O', 'P', 'T'})
  	go m.httpServer.Serve(httpLn)
  	return nil
  }
docs: // openHTTPServer initializes and opens the HTTP server.
  // The store must already be open.