awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
AliSoftware avatar

AliSoftware/OHHTTPStubs

0
View on GitHub↗
5,068 stars·597 forks·Objective-C·MIT·8 views

OHHTTPStubs

OHHTTPStubs is an HTTP network mocking library and request interceptor used to simulate server responses for testing application behavior without a live backend. It functions as a network request stubbing tool that captures outgoing network calls and replaces them with predefined mock data, custom status codes, and headers.

The library distinguishes itself through its ability to simulate a wide range of network conditions, including artificial latency and connection failures. It supports dynamic response sequencing, allowing the tool to return a series of different responses for the same request to test retry logic and recovery workflows.

The tool provides a comprehensive surface for request interception and response simulation, including the ability to load fake response bodies from local files. It includes observability utilities for debugging stub activation and mechanisms for stub lifecycle management to ensure a clean state between test executions.

Features

  • Network Request Mocking - Intercepts outgoing network calls and returns predefined fake data to eliminate the need for a live backend.
  • Request Interception - Intercepts outgoing network calls based on custom conditions to provide simulated data.
  • Predefined Response Mappings - Returns predefined status codes and headers to simulate specific server responses during testing.
  • HTTP Response Stubbing - Mimics server responses with custom status codes and headers to simulate diverse API scenarios.
  • Request Matching Engines - Provides a matching engine to identify which mock response to trigger based on request patterns.
  • Local File Mappings - Enables mapping network requests to local files in the application bundle to provide mock response bodies.
  • API Response Simulators - Mimics various server scenarios, including latency and failures, to test app stability.
  • HTTP Request Interceptors - Captures outgoing network calls and replaces them with local files or mock responses.
  • URL Loading Stack Interception - Registers a custom protocol class in the native system network stack to intercept outgoing requests.
  • HTTP Mocking Libraries - Provides a library to intercept and simulate HTTP traffic for testing application behavior without a real server.
  • API Integration Testing - Facilitates verifying application behavior against various simulated server responses, status codes, and headers.
  • Network Latency Simulators - Simulates degraded network conditions by adding artificial delays to requests and responses.
  • Network Resilience Simulators - Simulates connection failures and service outages to test application resilience.
  • Response Simulators - Introduces artificial latency and delays into responses to simulate slow network connections.
  • Network Failure Simulations - Implements the simulation of network errors and connection drops to test application resilience against service outages.
  • Sequential Response Queues - Provides the ability to return a sequence of different responses for the same request to test retry and recovery logic.
  • Custom Header Injections - Allows injecting custom HTTP headers into simulated responses to test client metadata handling.
  • Sequential Mock Responses - Maintains an ordered list of responses for a single request to test retry logic and state transitions.
  • Response Sequencing - Supports returning a series of different responses for the same request to validate retry and recovery workflows.
  • Stub Registries - Provides a system for registering and removing request-response mappings to isolate test cases and ensure clean state.
  • Testing Frameworks - Stubbing tool for network requests.

Star history

Star history chart for alisoftware/ohhttpstubsStar history chart for alisoftware/ohhttpstubs

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to OHHTTPStubs

Similar open-source projects, ranked by how many features they share with OHHTTPStubs.
  • proxymanapp/proxymanProxymanApp avatar

    ProxymanApp/Proxyman

    6,858View on GitHub↗

    Proxyman is a cross-platform HTTP debugging proxy that captures, inspects, and modifies HTTP, HTTPS, and WebSocket traffic. It functions as a man-in-the-middle proxy, decrypting SSL/TLS traffic to allow real-time inspection and modification of encrypted requests and responses. The tool is designed for debugging web and mobile applications, with capabilities for API mocking and simulation, scriptable traffic modification, and team collaboration on network logs. What distinguishes Proxyman is its deep integration with mobile and cross-platform development workflows. It provides automated certif

    debugging-tooliosmacos
    View on GitHub↗6,858
  • nock/nocknock avatar

    nock/nock

    13,103View on GitHub↗

    nock is a Node.js HTTP mocking library and request interceptor. It captures outgoing network traffic to specific hosts and paths, returning predefined responses to decouple applications from external servers during automated testing. The project functions as an API expectation framework to verify that specific calls were made with correct parameters. It includes a traffic recorder that captures real network interactions as fixtures for playback and a network simulation tool to introduce artificial latency or trigger network errors. Its capabilities cover request matching via hostnames, paths

    JavaScripthttpjavascriptmock
    View on GitHub↗13,103
  • mock-server/mockserver-monorepoM

    mock-server/mockserver-monorepo

    4,897View on GitHub↗

    This project is a multi-protocol API simulation and mocking system designed to replace external dependencies during development and testing. It provides an API mocking server, a network traffic proxy, and specialized simulators for language model services and identity providers. The system distinguishes itself through deep AI simulation capabilities, including the emulation of language model providers and Model Context Protocol servers using JSON-RPC 2.0. It supports multi-turn conversational logic, state tracking for AI chat APIs, and the visualization of agent execution through call graphs

    Java
    View on GitHub↗4,897
  • pgte/nockpgte avatar

    pgte/nock

    13,108View on GitHub↗

    Nock is a Node.js HTTP mocking library used to intercept outgoing network requests and return predefined responses. It functions as a network request interceptor and HTTP mock server, allowing developers to simulate external API behavior for automated testing without making live network calls. The project includes an API fixture recorder to capture real network interactions and save them as reusable data files for playback. It also features a network latency simulator that introduces artificial delays to outgoing HTTP responses to verify timeout handling and race conditions. The library prov

    JavaScript
    View on GitHub↗13,108
See all 30 alternatives to OHHTTPStubs→

Frequently asked questions

What does alisoftware/ohhttpstubs do?

OHHTTPStubs is an HTTP network mocking library and request interceptor used to simulate server responses for testing application behavior without a live backend. It functions as a network request stubbing tool that captures outgoing network calls and replaces them with predefined mock data, custom status codes, and headers.

What are the main features of alisoftware/ohhttpstubs?

The main features of alisoftware/ohhttpstubs are: Network Request Mocking, Request Interception, Predefined Response Mappings, HTTP Response Stubbing, Request Matching Engines, Local File Mappings, API Response Simulators, HTTP Request Interceptors.

What are some open-source alternatives to alisoftware/ohhttpstubs?

Open-source alternatives to alisoftware/ohhttpstubs include: proxymanapp/proxyman — Proxyman is a cross-platform HTTP debugging proxy that captures, inspects, and modifies HTTP, HTTPS, and WebSocket… nock/nock — nock is a Node.js HTTP mocking library and request interceptor. It captures outgoing network traffic to specific hosts… mock-server/mockserver-monorepo — This project is a multi-protocol API simulation and mocking system designed to replace external dependencies during… pgte/nock — Nock is a Node.js HTTP mocking library used to intercept outgoing network requests and return predefined responses. It… getsentry/responses — Responses is a Python mocking library designed to intercept outgoing HTTP calls made with the Requests library to… requestly/requestly.