A blueprint can be considered a smaller section of a Crow app, specifically where the router is conecerned. More...
Public Member Functions | |
Blueprint (const std::string &prefix) | |
Blueprint (const std::string &prefix, const std::string &static_dir) | |
Blueprint (const std::string &prefix, const std::string &static_dir, const std::string &templates_dir) | |
Blueprint (Blueprint &&value) | |
Blueprint & | operator= (const Blueprint &value)=delete |
Blueprint & | operator= (Blueprint &&value) noexcept |
bool | operator== (const Blueprint &value) |
bool | operator!= (const Blueprint &value) |
std::string | prefix () const |
std::string | static_dir () const |
DynamicRule & | new_rule_dynamic (std::string &&rule) |
template<uint64_t N> | |
black_magic::arguments< N >::type::template rebind< TaggedRule > & | new_rule_tagged (std::string &&rule) |
void | register_blueprint (Blueprint &blueprint) |
CatchallRule & | catchall_rule () |
Private Member Functions | |
void | apply_blueprint (Blueprint &blueprint) |
Private Attributes | |
std::string | prefix_ |
std::string | static_dir_ |
std::string | templates_dir_ |
std::vector< std::unique_ptr< BaseRule > > | all_rules_ |
CatchallRule | catchall_rule_ |
std::vector< Blueprint * > | blueprints_ |
Friends | |
class | Router |
A blueprint can be considered a smaller section of a Crow app, specifically where the router is conecerned.
You can use blueprints to assign a common prefix to rules' prefix, set custom static and template folders, and set a custom catchall route. You can also assign nest blueprints for maximum Compartmentalization.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |