AliSoftware/OHHTTPStubs
Stub your network requests easily! Test your apps with fake network data and custom response time, response code and headers! observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- 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: 5167
- days_rel: n/a
- days_push: 846
- n_releases_24m: 0
Adoption not part of the score
5072 stars · 597 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
OHHTTPStubs is an Objective-C/Swift library for stubbing network requests in iOS and macOS apps. It intercepts requests made through Cocoa's URL Loading System and returns fake responses with custom data, status codes, headers, and simulated latency.
Use cases
- stub network requests in iOS unit tests with fixture files
- simulate slow network conditions to test app behavior
- mock API responses for Alamofire or AFNetworking requests
- return custom status codes and headers in tests
- test offline and error scenarios without a real server
When to choose
- you're building iOS/macOS apps using NSURLSession, AFNetworking, or Alamofire and need deterministic network responses in tests
- you want to simulate bad network conditions like latency or failures
- you prefer stubbing at the URL Loading System level rather than running a mock server
When to avoid
- your app uses a networking stack that bypasses Cocoa's URL Loading System
- you need integration testing against a real or containerized mock server
- you're developing for platforms outside Apple's ecosystem
Facets
library · maturity maintenance
mocking testing http-client testing mobile-development developer-tools network-stubbing unit-testing url-loading-system objective-c fake-network-data slow-network-simulation ios macos swift
1 source
- readme: https://github.com/AliSoftware/OHHTTPStubs · fetched 2026-08-28 · 5cf86e6c35b0
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| AliSoftware/OHHTTPStubs | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="AliSoftware/OHHTTPStubs")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem