PMHTTP is an HTTP framework built around URLSession and designed for Swift while retaining Obj-C compatibility. We think URLSession is great. But it was designed for Obj-C and it doesn't handle anything beyond the networking aspect of a request. This means no handling of JSON, and it doesn't even provide multipart/form-data uploads. PMHTTP leaves the networking to URLSession and provides everything else.

Features

  • Requests can define parse handlers that execute asynchronously separately from the completion block, and requests can be canceled while parsing and the completion block sees the correct result
  • First-class JSON support using PMJSON
  • Structured results and high-quality errors; no more treating URLError.cancelled as a network error
  • Strongly-typed results
  • Requests can be defined once (including a parse handler) and executed many times, just like URLRequest
  • A configurable base URL, allowing for switching between staging and production with no change to the code constructing the requests

Project Samples

Project Activity

See All Activity >

Categories

Frameworks, JSON

License

Apache License V2.0

Follow PMHTTP

PMHTTP Web Site

Other Useful Business Software
Next-Gen Encryption for Post-Quantum Security | CLEAR by Quantum Knight Icon
Next-Gen Encryption for Post-Quantum Security | CLEAR by Quantum Knight

Lock Down Any Resource, Anywhere, Anytime

CLEAR by Quantum Knight is a FIPS-140-3 validated encryption SDK engineered for enterprises requiring top-tier security. Offering robust post-quantum cryptography, CLEAR secures files, streaming media, databases, and networks with ease across over 30 modern platforms. Its compact design, smaller than a single smartphone image, ensures maximum efficiency and low energy consumption.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of PMHTTP!

Additional Project Details

Programming Language

Swift

Related Categories

Swift Frameworks, Swift JSON Software

Registered

2023-10-26