Skip to content

fix: improve request/response capture and compare safety#43

Merged
georgidhristov merged 3 commits into
mainfrom
feat/improve-body-capture-and-compare-safety
May 16, 2026
Merged

fix: improve request/response capture and compare safety#43
georgidhristov merged 3 commits into
mainfrom
feat/improve-body-capture-and-compare-safety

Conversation

@georgidhristov
Copy link
Copy Markdown
Collaborator

Summary

Fixes #38 by displaying captured exception details in the Response Body UI when responses are empty.

This PR also improves request/response capture safety, compare validation, payload handling, and internal project organization.

Changes

  • Fix captured exception response display for empty error responses
  • Add bounded response body capture stream
  • Add configurable max body capture size
  • Add local compare target support option
  • Improve request/response body capture safety
  • Improve large payload handling
  • Improve compare URL validation
  • Redact sensitive request headers
  • Improve non-text/binary response handling
  • Refactor internal project structure
  • Reorganize embedded assets
  • Clean up embedded resource loading
  • Improve payload type badge handling for truncated bodies

New Options

public int MaxBodyCaptureSizeKb { get; set; } = 256;

public bool AllowLocalCompareTargets { get; set; }

@georgidhristov georgidhristov merged commit 7894ff2 into main May 16, 2026
1 check passed
@georgidhristov georgidhristov deleted the feat/improve-body-capture-and-compare-safety branch May 16, 2026 13:46
@georgidhristov georgidhristov changed the title Improve request/response capture and compare safety fix: improve request/response capture and compare safety May 16, 2026
@georgidhristov georgidhristov added bug Something isn't working middleware HTTP pipeline and middleware related issues enhancement New feature or request .NET Pull requests that update .NET code labels May 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request middleware HTTP pipeline and middleware related issues .NET Pull requests that update .NET code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Display captured exceptions in Response Body UI for empty error responses

1 participant