Ross ROSS = Recommend OSS · open-source software intelligence for agents

richardszalay/mockhttp

Testing layer for Microsoft's HttpClient library. Create canned responses using a fluent API. observed · 2026-08-28

github.com/richardszalay/mockhttp · C# · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

86/100

  • Activity 96
  • Release rhythm 64
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 4455
  • days_rel: 26
  • days_push: 26
  • n_releases_24m: 1

Full methodology

Adoption not part of the score

1760 stars · 90 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A testing library for .NET that replaces HttpClient's HttpMessageHandler with a mock handler, letting you configure canned responses via a fluent API. It supports both repeatable backend definitions and ordered one-shot request expectations, inspired by AngularJS's $httpBackend.

Use cases

  • mock http responses in unit tests
  • test a service layer without network calls
  • stub HttpClient requests with canned JSON
  • verify expected HTTP requests were made
  • simulate API responses in dotnet tests

When to choose

  • you use HttpClient in .NET and need deterministic offline tests
  • you want fluent request matching with URL, method, and content constraints
  • you need expectation-based verification of call order and counts

When to avoid

  • you need to mock non-.NET HTTP clients
  • you want full integration tests against a real or spun-up HTTP server
  • your tests target other HTTP stacks like RestSharp

Facets

library · maturity active

mocking testing http-client testing developer-tools apis dotnet cross-platform httpclient unit-testing fluent-api stubbing http-message-handler

1 source

Member repositories

RepositoryRoleHealth v2
richardszalay/mockhttpmain86

For agents

markdown · JSON · MCP: product_card(name="richardszalay/mockhttp")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem