Skip to content

docs: add documentation for HTTP form data#463

Merged
vbreuss merged 2 commits into
mainfrom
topic/document-form-data
Feb 7, 2026
Merged

docs: add documentation for HTTP form data#463
vbreuss merged 2 commits into
mainfrom
topic/document-form-data

Conversation

@vbreuss

@vbreuss vbreuss commented Feb 7, 2026

Copy link
Copy Markdown
Member

Updates HttpClient matching documentation to cover generic content matching, richer query matching, and adds form-data (URL-encoded) content matching guidance.

Key Changes:

  • Replaced It.IsStringContent(...) examples with It.IsHttpContent(...) and new WithString... matchers.
  • Expanded .WithQuery(...) docs to include key/value pair matching and raw query string matching.
  • Added docs for URL-encoded form-data matching (WithFormData(...)) in HttpClient examples.

@vbreuss vbreuss self-assigned this Feb 7, 2026
Copilot AI review requested due to automatic review settings February 7, 2026 17:15
@vbreuss vbreuss added the documentation Improvements or additions to documentation label Feb 7, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates HttpClient matching documentation to cover generic content matching, richer query matching, and adds form-data (URL-encoded) content matching guidance.

Changes:

  • Replaced It.IsStringContent(...) examples with It.IsHttpContent(...) and new WithString... matchers.
  • Expanded .WithQuery(...) docs to include key/value pair matching and raw query string matching.
  • Added docs for URL-encoded form-data matching (WithFormData(...)) in HttpClient examples.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 10 comments.

File Description
README.md Updates core README HttpClient section with new content/query/form-data matching examples and wording.
Docs/pages/special-types/01-httpclient.md Mirrors README changes in dedicated HttpClient docs page.

Comment thread README.md
Comment thread README.md
Comment thread README.md
Comment thread README.md Outdated
Comment thread README.md
Comment thread Docs/pages/special-types/01-httpclient.md
Comment thread Docs/pages/special-types/01-httpclient.md
Comment thread Docs/pages/special-types/01-httpclient.md
Comment thread Docs/pages/special-types/01-httpclient.md Outdated
Comment thread Docs/pages/special-types/01-httpclient.md
@github-actions

github-actions Bot commented Feb 7, 2026

Copy link
Copy Markdown

Test Results

    21 files  ±0      21 suites  ±0   5m 26s ⏱️ -7s
 2 655 tests ±0   2 654 ✅ ±0  1 💤 ±0  0 ❌ ±0 
17 830 runs  ±0  17 829 ✅ ±0  1 💤 ±0  0 ❌ ±0 

Results for commit 1a689fa. ± Comparison against base commit 1787c7e.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Feb 7, 2026

Copy link
Copy Markdown

🚀 Benchmark Results

Details

BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.3 LTS (Noble Numbat)
AMD EPYC 7763 2.45GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.102
[Host] : .NET 10.0.2 (10.0.2, 10.0.225.61305), X64 RyuJIT x86-64-v3

Job=InProcess Toolchain=InProcessEmitToolchain IterationCount=15
LaunchCount=1 WarmupCount=10

Method Mean Error StdDev Gen0 Gen1 Allocated
Simple_Mockolate 1.596 μs 0.0135 μs 0.0119 μs 0.2270 - 3.73 KB
Simple_Moq 175.355 μs 0.8969 μs 0.8390 μs 0.4883 - 14.55 KB
Simple_NSubstitute 5.675 μs 0.0284 μs 0.0252 μs 0.5569 0.0076 9.14 KB
Simple_FakeItEasy 6.462 μs 0.0447 μs 0.0396 μs 0.4959 - 8.11 KB

@vbreuss vbreuss enabled auto-merge (squash) February 7, 2026 17:25
@sonarqubecloud

sonarqubecloud Bot commented Feb 7, 2026

Copy link
Copy Markdown

@vbreuss vbreuss merged commit ec1859d into main Feb 7, 2026
12 checks passed
@vbreuss vbreuss deleted the topic/document-form-data branch February 7, 2026 17:29
@github-actions

github-actions Bot commented Feb 7, 2026

Copy link
Copy Markdown

This is addressed in release v1.3.0.

@github-actions github-actions Bot added the state: released The issue is released label Feb 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation state: released The issue is released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants