Releases: mdb1/CoreNetworking
Releases · mdb1/CoreNetworking
0.1.1
0.1.0
0.0.5
Add pretty printed logs for the json data:
🛜 ===> Network Request started:
▿ 3 key/value pairs
▿ (2 elements)
- key: "Request\'s Internal Id"
- value: "[CA5C3]"
▿ (2 elements)
- key: "URL"
- value: "https://catfact.ninja/fact/?"
▿ (2 elements)
- key: "HTTP Method"
- value: "GET"
🛜 <==== Network Response received:
▿ 3 key/value pairs
▿ (2 elements)
- key: "Status Code"
- value: "200"
▿ (2 elements)
- key: "Request\'s Internal Id"
- value: "[CA5C3]"
▿ (2 elements)
- key: "URL"
- value: "https://catfact.ninja/fact/?"
✅ ==> JSON Decoding start:
▿ CoreNetworkingTests.CatFact
- fact: "Cats are now Britain\'s favourite pet: there are 7.7 million cats as opposed to 6.6 million dogs."
- length: 96
ℹ️ Additional Info:
ℹ️ 🔍 Expected Model: CatFact
ℹ️ 📝 Pretty Printed JSON:
{
"fact" : "Cats are now Britain's favourite pet: there are 7.7 million cats as opposed to 6.6 million dogs.",
"length" : 96
}
✅ <== JSON Decoding end.
🏁 <==== Network Request finished.
Full Changelog: 0.0.4...0.0.5
0.0.4
Add a more robust NetworkLogger.
Example:
🛜 ===> Network Request started:
▿ 3 key/value pairs
▿ (2 elements)
- key: "URL"
- value: "https://catfact.ninja/fact/?"
▿ (2 elements)
- key: "HTTP Method"
- value: "GET"
▿ (2 elements)
- key: "Request\'s Internal Id"
- value: "[3E786]"
🛜 <==== Network Response received:
▿ 3 key/value pairs
▿ (2 elements)
- key: "Request\'s Internal Id"
- value: "[3E786]"
▿ (2 elements)
- key: "URL"
- value: "https://catfact.ninja/fact/?"
▿ (2 elements)
- key: "Status Code"
- value: "200"
✅ ==> JSON Decoding start:
▿ CoreNetworkingTests.CatFact
- fact: "A cat\'s brain is more similar to a man\'s brain than that of a dog."
- length: 66
ℹ️ Additional Info:
▿ 2 key/value pairs
▿ (2 elements)
- key: "Expected Model"
- value: "CatFact"
▿ (2 elements)
- key: "UTF8 - String"
- value: "{\"fact\":\"A cat\'s brain is more similar to a man\'s brain than that of a dog.\",\"length\":66}"
✅ <== JSON Decoding end.
🏁 <==== Network Request finished.
Full Changelog: 0.0.3...0.0.4
0.0.3
0.0.2
Add support for macOS
Add unit tests action to the repository
Full Changelog: 0.0.1...0.0.2
0.0.1
What's Changed
- [Enhancement] Add DecodingError as associated type in decode enum case in ResponseError by @gentilijuanmanuel in #1
New Contributors
- @gentilijuanmanuel made their first contribution in #1
Full Changelog: https://github.com/mdb1/CoreNetworking/commits/0.0.1