|
| ChunkedDecoder.h |
|
| HttpClient.h |
|
| HttpFileserver.h |
| HTTP file server and file handling helpers for static content.
|
|
| HttpParser.h |
|
| HttpRequest.h |
| Defines the HttpRequest class for handling HTTP requests: headers, method, path, query string, cookies, and body (including multipart forms).
|
|
| HttpResponse.h |
| HTTP HttpResponse class for managing status, headers, body, and streaming support.
|
|
| HttpServer.h |
| HTTP Server class that listens for connections and dispatches requests to a Router.
|
|
| JsonRequestHelper.h |
| Helper functions to extract fields from JSON request bodies.
|
|
| JsonResponse.h |
| Utility functions to send standard JSON responses using nlohmann::json.
|
|
| JwtAuthenticator.h |
| Stateless singleton class for creating and validating JWTs using HMAC-SHA256.
|
|
| Middleware.h |
| Middleware definitions for HTTP routing (e.g., logging, auth). Part of the PicoFramework HTTP server. This module defines middleware functions that can be used in the HTTP request processing pipeline. Middleware can perform tasks such as authentication, logging, and modifying requests or responses before passing them to the next handler in the chain. Middleware functions are designed to be composable, allowing multiple middleware components to be applied in sequence. Each middleware function can either allow the request to continue to the next handler or stop further processing based on certain conditions.
|
|
| MultipartParser.h |
| Parser for handling multipart/form-data file uploads. Part of the PicoFramework HTTP server. This module provides the MultipartParser class, which is responsible for processing multipart/form-data uploads over HTTP. It handles detecting boundaries, parsing headers, extracting filenames, and writing file data to storage (e.g., an SD card). It also sends appropriate HTTP responses based on the success or failure of the upload process.
|
|
| Router.h |
| HTTP routing with middleware and optional JWT-based authorization. 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.
|
|
| RouteTypes.h |
|
| url_utils.h |
| Utility functions for URL decoding, form parsing, MIME type lookup, and IP address extraction.
|
|