public function stack(Middleware ...$middlewares) {
        if ($this->running) {
            throw new \Error("Cannot set middlewares after the server has started");
        }

        $this->middlewares = array_merge($middlewares, $this->middlewares);
    }