Alexey Antonov
May 21, 2021

Nice article! However, there are a few things to be improved. I see the Headers associated type (as some other types, that could be not so obvious for the beginners), but in the article it isn't mentioned. And I also think about retry() and recieve(on: ) things as it's performed on the not main thread. But anyway, good work!

P.S. I also prefer structs instead of enums, but I use struct for each endpoint.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Alexey Antonov
Alexey Antonov

Written by Alexey Antonov

iOS Meister @ Flitsmeister, mentoring

No responses yet

Write a response