OHHTTPStubs Versions Save

Stub your network requests easily! Test your apps with fake network data and custom response time, response code and headers!

4.6.0

8 years ago
  • Added isMethodGET(), isMethodPUT(), isMethodPOST() and isMethodDELETE() to the Swift helpers. (#137)

4.5.1

8 years ago
  • Added missing tvOS and watchOS platforms to the Swift subspec.
    @pantuspavel, #136

4.5.0

8 years ago

4.4.0

8 years ago
  • Fixed issue with Umbrella Headers (#127, #131)
  • Added methods for creating OHHTTPStubsResponses from NSURLs that represent file system resources (@MaxGabriel, #129)
  • Bumped Swift subspec compatibility to OSX 10.9 instead of 10.7.

4.2.1

8 years ago
  • Fix the Examples Xcode project + lib Podfile that were referencing old target names (mikelupo, #117)
  • Added two new constants for download speed: OHHTTPStubsDownloadSpeed1KBPS = 1kbps and OHHTTPStubsDownloadSpeedSLOW = 1.5 kpbs. (mikelupo, #114)

4.3.0

8 years ago
  • Xcode projects updated to Xcode 7.0 Final
  • Added a Swift subspec that adds helper global functions to ease & make more compact the use of OHHTTPStubs from Swift 2.0 (#111)

If you're using OHHTTPStubs in a Swift 2.0 project, it's recommended to add pod 'OHHTTPStubs/Swift to your Podfile so you can use those handy helpers.

4.2.0

8 years ago
  • Added support for stubs written in the Mocktail format (@JinlianWang, #108)
  • The OHHTTPStubs spec has been splitted into multiple subspecs:
    • The default subspec (used when you simply use pod 'OHHTTPStubs' in your Podfile) contains the subspecs Core, NSURLSession, JSON & OHPathHelpers (so that it matches the features that most people use).
    • Other optional subspecs are HTTPMessage and Mocktail (which are opt-in because used by much less people). If you want to use them, you'll need to request them explicitly in your Podfile using pod 'OHHTTPStubs/Mocktail for example.
  • The iOS Unit Tests are now also run for the framework as well as for the static library, to ensure the tests pass in both contexts (because frameworks sometimes introduce subtleties like when using NSBundle, so it's worth testing in that context too)

4.1.0

8 years ago
  • Added support for using OHHTTPStubs in watchOS 2.0 targets.
  • Improved compatibility macros (nullability annotations) — and tested against Xcode 7 beta 4.

4.0.2

9 years ago
  • Fix OHResourceBundle name mismatch between header and implementation (@tibr, #103)

4.0.1

9 years ago
  • Fix threading in NSURLProtocol subclass calling NSURLProtocolClient callbacks from wrong thread. (@nsprogrammer, #96)