HTTP routing with middleware and optional JWT-based authorization. More...
#include "framework_config.h"#include "DebugTrace.h"#include <regex>#include "http/Router.h"#include "http/HttpRequest.h"#include "http/HttpResponse.h"#include "http/JwtAuthenticator.h"#include "http/Middleware.h"#include "utility/utility.h"#include "http/url_utils.h"#include "http/JsonResponse.h"#include "framework/AppContext.h"
Include dependency graph for Router.cpp:Go to the source code of this file.
Functions | |
| static std::string | extractBearerToken (const std::string &auth_header) |
Variables | |
| SemaphoreHandle_t | lock_ |
Part of the PicoFramework HTTP server. This module provides the Router class, which manages HTTP routes, middleware, and optional JWT authentication. It allows dynamic route registration, regex-based path matching, and supports global and per-route middleware. The Router can handle requests, invoke appropriate handlers, and apply middleware functions in sequence. It also includes a built-in route handler for testing JWT tokens at the /auth endpoint.
Improvements:
Definition in file Router.cpp.
|
static |
Definition at line 49 of file Router.cpp.
Referenced by Router::getAuthorizationToken().
Here is the caller graph for this function:| SemaphoreHandle_t lock_ |
Definition at line 44 of file Router.cpp.