Skip to content

Releases: marinofelipe/http_client

0.0.5

14 Sep 17:11
Compare
Choose a tag to compare

What's Changed

  • Implement tiny code improvement by @marinofelipe in #5
  • Add conditional FoundationNetworking to fix compile errors on Linux
  • Add StrictConcurrency flag to Package.swift in preparation for async await support

Full Changelog: 0.0.4...0.0.5

Tiny tiny patch

14 Jun 20:45
Compare
Choose a tag to compare

Tiny improvements

31 May 14:12
Compare
Choose a tag to compare
  • 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

28 May 23:40
Compare
Choose a tag to compare
  • Remove unneeded HTTPRequestBuilder abstraction
  • Fix to compile tests
  • Update schemes to run tests in parallel and with random order

Initial version

27 May 00:17
Compare
Choose a tag to compare

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.