Skip to content

About

Avolania Based Basic Http Request Utility

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

152 Commits

Folders and files

Repository files navigation

RequesterMini

Avalonia Base Http request Maker

Two front ends share the same libraries:

  • src/RequesterMini — the Avalonia desktop app.
  • src/RequesterMini.Web — a Blazor Server app with a MudBlazor UI, same features in a browser.

Web app (Blazor Server + MudBlazor)

dotnet run --project src/RequesterMini.Web

Then open the printed URL (http://localhost:5168 with the http profile). It offers the same request builder as the desktop app — methods, body types with live JSON validation, headers, query params mirrored into the URL, Basic auth, cURL export, .bru import — plus a syntax-highlighted response view and a persisted request history at /history.

GET /healthz is a liveness endpoint for container orchestrators.

Docker

The build context is the repository root, because the web app references sibling libraries:

docker build -f src/RequesterMini.Web/Dockerfile -t requestermini-web .
docker run -p 8080:8080 -v requestermini-data:/data requestermini-web

Or with Compose:

docker compose up --build

History and logs are written to /data (override with the DataDirectory environment variable), so mount a volume there to keep them across restarts. The container serves plain HTTP on 8080 and honours X-Forwarded-*, so put it behind a reverse proxy that terminates TLS. Blazor Server keeps per-user state in the circuit, so run a single replica unless the proxy does sticky sessions.

What is and is not shared between people using one instance:

  • Shared: environments (including which one is active), collections and history live in one set of files per instance. There are no user accounts, so one person switching to a "prod" environment changes what every other open tab sends next. Run one instance per person or team if that matters.
  • Per browser tab: only the request being composed.
  • Limits: a response over 10 MB fails with a clear message rather than being buffered, and history keeps at most the first 256 KB of each response (the response panel shows the full body for the request just sent).
  • What is saved: history and collections store the request as typed, including headers from the Headers tab — an Authorization header typed there is saved in plain text. Only credentials entered on the Auth and Proxy tabs are kept out of the saved files.

The app sends HTTP requests on the user's behalf from wherever it runs. Deployed on a public host that makes it a general-purpose proxy into that network — keep it behind authentication.

Generate Executable (for Smelly nerds)

Single-file + trimmed build is configured in the project. Just run the publish command.

Windows Publish

dotnet publish -r win-x64 --self-contained true -c Release

macOS Publish

dotnet publish -r osx-arm64 --self-contained true -c Release

Distribution

The following native files must be distributed alongside the exe:

File Purpose
av_libglesv2.dll Avalonia GPU/OpenGL rendering
libHarfBuzzSharp.dll Font shaping
libSkiaSharp.dll Skia graphics engine

Releases

Every push to main runs the CI workflow (.github/workflows/ci.yml): the full test suite, plus a build of the web container image that is discarded rather than pushed. That is what keeps a tagged release from being the first place a broken Dockerfile shows up.

Push a version tag and the Release workflow (.github/workflows/release.yml) does the rest: it runs the full test suite, publishes the Avalonia desktop app as self-contained zips, pushes the web image to GHCR, and creates a GitHub Release with the zips attached.

git tag v0.1.0
git push origin v0.1.0

Each v* tag produces:

  • RequesterMini-<version>-win-x64.zip — Windows x64 desktop app (unzip and run RequesterMini.exe)
  • RequesterMini-<version>-osx-arm64.zip — macOS Apple Silicon desktop app (unzip and run RequesterMini)
  • ghcr.io/anilkay/requestermini-web:<version> (+ :latest) — web app container image
docker pull ghcr.io/anilkay/requestermini-web:0.1.0
docker run -p 8080:8080 -v requestermini-data:/data ghcr.io/anilkay/requestermini-web:0.1.0

The tag must point at a commit where dotnet test RequesterMini.slnx -c Release passes — the workflow stops before publishing anything if tests fail.

Used Prompts

Screenshot

The following screenshot shows the main UI of RequesterMini.

RequesterMini screenshot

About

Avolania Based Basic Http Request Utility

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages