onurhuseyincantay / hover Goto Github PK
View Code? Open in Web Editor NEWAsync network layer with Combine
License: MIT License
Async network layer with Combine
License: MIT License
Network Authentication support for Bearer Basic etc
Adding Support for lower than iOS 13 watchOS, TvOS etc
Here's the response:
Task <31B06E42-1D6F-42C2-84A8-65CB0BEE175F>.<1> finished with error [-999] Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLStringKey=https://api.notemate.com/notemate/register, NSLocalizedDescription=cancelled, NSErrorFailingURLKey=https://api.notemate.com/notemate/register}
https://github.com/onurhuseyincantay/Hover/blob/master/Sources/Hover/Types/WorkType.swift#L15
I think it bugs. this is how I fixed
public struct AnyEncodable: Encodable {
public let encodable: Encodable
public init(_ encodable: Encodable) {
self.encodable = encodable
}
public func encode(to encoder: Encoder) throws {
try self.encodable.encode(to: encoder)
}
}
public enum DataType {
case requestPlain
case requestData(data: Data)
case requestParameters(parameters: [String: Any], encoding: JSONEncoder = JSONEncoder())
case requestWithEncodable(encodable: AnyEncodable)
}
Currently the URLFormEncoded Request is not properly constructed therefor it has a bug needs to be fixed.
Adding Shared Preference where you can enable disable debugging option and will show endpoint path header attributes and body response or error if neede.
Current Unit Test Approach hits the network layer we want to avoid that and make a better, not flaky and stable version of the unit tests.
Due to canImport(Combine)
statement inside Hover, previews are failing.
It would be perfect if Hover supported SPM
Currently the swift batch is not passing the update the failing tests and make it pass again it might be because of the JsonPlaceholderAPI that we are using as test resource.
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.