5#ifndef CUTELYST_DISPATCHTYPEPATH_H
6#define CUTELYST_DISPATCHTYPEPATH_H
8#include <Cutelyst/action.h>
9#include <Cutelyst/cutelyst_export.h>
10#include <Cutelyst/dispatchtype.h>
14class DispatchTypePathPrivate;
22class CUTELYST_EXPORT DispatchTypePath final :
public DispatchType
25 Q_DECLARE_PRIVATE(DispatchTypePath)
30 explicit DispatchTypePath(QObject *parent =
nullptr);
34 ~DispatchTypePath()
override;
36 QByteArray list()
const override;
38 MatchType match(Context *c, QStringView path,
const QStringList &args)
const override;
40 bool registerAction(Action *action)
override;
42 bool inUse()
override;
48 QString uriForAction(Action *action,
const QStringList &captures)
const override;
51 DispatchTypePathPrivate *d_ptr;
The Cutelyst namespace holds all public Cutelyst API.