3squared / peaknetwork Goto Github PK
View Code? Open in Web Editor NEWPeakNetwork is a Swift networking microframework, built on top of Session and leveraging the power of Codable.
License: MIT License
PeakNetwork is a Swift networking microframework, built on top of Session and leveraging the power of Codable.
License: MIT License
DecodableOperation
is useful, but has a very narrow use case. Either allow it to be subclassed to provide more flexibility when building chains of operations, or make a version that implements ConsumesResult
.
I've encountered situations where, given an array of Encodables
, I need to upload each one in an individual request to the web service I'm working with. It would be nice if PeakNetwork had an operation that took a Requestable
and an array of Codables
and performed a request for each one.
Session
only has support for dataTasks currently. Nice to support the other types of task easily. Additionally, built-in operations for upload/download would be handy.
https://developer.apple.com/documentation/foundation/urlsession/1411608-downloadtask
https://developer.apple.com/documentation/foundation/urlsession/1411518-uploadtask
Version 6.0.0 replaces the Requestable
paradigm with that of WebAPI
. As I understand it, WebAPI
is responsible for defining all information (base URL, endpoints, common headers, etc.) about the web API you are interfacing with in your application. This rigidity is pleasing and reminds me of Retrofit by Square.
However, I'm not sure WebAPI
should be responsible for creating operations or holding information about the session they are executed on. Personally, I feel WebAPI
should only be a static representation and definition of a web API.
Furthermore, unless the APIs for Resource
are more strictly defined with Endpoint
in mind, I find the availability of Endpoint
to users of PeakNetwork
a little redundant.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.