Releases: marinofelipe/http_client
Releases · marinofelipe/http_client
0.0.5
What's Changed
- Implement tiny code improvement by @marinofelipe in #5
- Add conditional
FoundationNetworking
to fix compile errors on Linux - Add
StrictConcurrency
flag toPackage.swift
in preparation for async await support
Full Changelog: 0.0.4...0.0.5
Tiny tiny patch
- Just some syntax improvements suggested by @pietrocaselani.
Tiny improvements
- Make it possible to set custom Port when building http requests
- Add a
.decoding(_ error: DecodingError)
to HTTPResponseError and return it on CombineHTTPClient when decoding fails. This will make it possible for clients to better debug decoding issues.
Small fixes
- Remove unneeded HTTPRequestBuilder abstraction
- Fix to compile tests
- Update schemes to run tests in parallel and with random order
Initial version
Create two http client libraries. Both are packaged with shared HTTPClientCore, which provides common types and helpers such as HTTPRequestBuilder.
Third library is a test support framework that mainly helps on unit testing and mocking the clients.
HTTPClient
A tiny wrapper around URLSession that makes it easier to do simple REST networking.
CombineHTTPClient
Provides a Promise-like API built on top of URLSession, Combine and its Foundation conveniences.
HTTPClientTestSupport
Helpers and mocks that can help on testing code that uses one of the clients.