public function getAllowedMethods()
    {
        $result = [];
        if ($this->get) {
            $result[] = HttpMethods::GET;
        }
        if ($this->post) {
            $result[] = HttpMethods::POST;
        }
        if ($this->put) {
            $result[] = HttpMethods::PUT;
        }
        if ($this->path) {
            $result[] = HttpMethods::PATCH;
        }
        if ($this->delete) {
            $result[] = HttpMethods::DELETE;
        }
        if ($this->head) {
            $result[] = HttpMethods::HEAD;
        }
        if ($this->options) {
            $result[] = HttpMethods::OPTIONS;
        }

        return $result;
    }