Protocols
The following protocols are available globally.
-
A cache key for
See moreHACachesContainer
Declaration
Swift
public protocol HACacheKey
-
A type which can be decoded using our data type
Note
This differs fromDecodable
intentionally;Decodable
does not supportAny
types or JSON well when the results are extremely dynamic. This limitation requires that we do it ourselves.Declaration
Swift
public protocol HADataDecodable : HADecodeTransformable
-
Decode a value by massagging into another type
For example, this allows decoding a Date from a String without having to do intermediate casting in calling code.
See moreDeclaration
Swift
public protocol HADecodeTransformable
-
Delegate of the connection
See moreDeclaration
Swift
public protocol HAConnectionDelegate : AnyObject
-
A token representing an individual request or subscription
You do not need to strongly retain this value. Requests are only cancelled explicitly.
See moreDeclaration
Swift
public protocol HACancellable