OHHTTPStubs is a library designed to stub your network requests very easily. It can help you test your apps with fake network data (stubbed from file) and simulate slow networks, to check your application behavior in bad network conditions, and write unit tests that use fake network data from your fixtures. OHHTTPStubs headers are fully documented using Appledoc-like / Headerdoc-like comments in the header files. Instead of writing the content of the stubs you want to use manually, you can use tools like SWHttpTrafficRecorder to record network requests into files. This way you can later use those files as stub responses. OHHTTPStubs is split into subspecs so that when using Cocoapods, you can get only what you need, no more, no less. OHHTTPStubs supports Swift 2.2 (Xcode 7), Swift 2.3 (Xcode 8), Swift 3.0 (Xcode 8+) and Swift 3.1 (Xcode 8.3+).

Features

  • Use OHHTTPStubs in your unit tests
  • Automatic loading
  • Write unit tests that normally would perform network requests
  • OHHTTPStubs is automatically loaded and installed (at the time the library is loaded in memory)
  • OHHTTPStubs can be used on apps submitted on the App Store
  • Test your apps with fake network data and custom response time

Project Samples

Project Activity

See All Activity >

Categories

Networking, Libraries

License

MIT License

Follow OHHTTPStubs

OHHTTPStubs Web Site

Other Useful Business Software
Go From AI Idea to AI App Fast Icon
Go From AI Idea to AI App Fast

One platform to build, fine-tune, and deploy ML models. No MLOps team required.

Access Gemini 3 and 200+ models. Build chatbots, agents, or custom models with built-in monitoring and scaling.
Try Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of OHHTTPStubs!

Additional Project Details

Programming Language

Objective C

Related Categories

Objective C Networking Software, Objective C Libraries

Registered

2021-11-10