From c0a4e1c04df97bc517c2facdb345dc5f3bb3a8f3 Mon Sep 17 00:00:00 2001 From: szeka9 Date: Sun, 3 May 2026 12:57:31 +0200 Subject: [PATCH 1/3] Wildcard URL support, update examples Support wildcard URLs with placeholder segments in the URL path. This allows more versatile applications and reduced code duplication. Update example application to include most common use cases. Set demo_app as the default in Makefile. --- Makefile | 2 +- assets/www/examples.html | 103 ++++++++++++++++++++++++--------- docs/setup.md | 4 +- example/demo_app/app.py | 54 ++++++++++++----- src/pyrobusta/protocol/http.py | 37 +++++++++++- tests/unit/test_http.py | 22 +++++++ 6 files changed, 177 insertions(+), 45 deletions(-) diff --git a/Makefile b/Makefile index 016ada9..a7bea0c 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ DEVICE ?= u0 SRC_DIR := src TEST_DIR := tests -EXAMPLE_DIR := example/mip_repo +EXAMPLE_DIR := example/demo_app BUILD_DIR := build DIST_DIR := dist TLS_DIR := tls diff --git a/assets/www/examples.html b/assets/www/examples.html index 95a1a4d..1323a79 100644 --- a/assets/www/examples.html +++ b/assets/www/examples.html @@ -64,44 +64,77 @@

Server configuration


-

Simple Server Application

-

The below example demonstrates how to set up a simple application, exposed at /app.

-

Use curl to test your application.

-