Swiftpack.co -  RustyKnight/HttpEngineCore as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
RustyKnight/HttpEngineCore
A simple protocol designed to sit onto of Http engine implementations, so they can be more easily stubbed out
.package(url: "https://github.com/RustyKnight/HttpEngineCore.git", from: "v0.0.1")

HttpEngineCore

A simple protocol designed to sit onto of Http engine implementations, so they can be more easily stubbed out

Why?

To often recently, I've been required to design APIs which sit on top Http based implementations. These introduce difficulties in unit testing the API (mocking/stubbing) as well as providing a easier layer for dependency injection.

This is NOT a Http engine implementation, is intended to sit ontop of the other APIs/engines and commonalise the layer and, as a side effect, hide the underlying implementation, with the intention of providing a depedency injection enrty point for the higher level API/App, so that it can be more easily (unit) tested or stubbed

GitHub

link
Stars: 0
Last commit: 6 days ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Dependencies

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API