HTTP in Swift, Part 8: Request Options
In part 8 of his series on building a Swift HTTP framework, Dave Delong demonstrates how we can customize individual request behavior. Dave does this by declaring type-safe request options that dynamically alter requests when applied by the request loader.
Posted on January 21, 2021
#network
#http
HTTP in Swift, Part 7: Dynamically Modifying Requests
Part 7 of Dave Delong's series on building a Swift HTTP framework looks at dynamically modifying requests. Dave demonstrates how modifying requests as they pass through the framework chain is a powerful tool that can be applied in several situations.
Posted on December 17, 2020
#network
#http
HTTP in Swift, Part 6: Chaining Loaders
In part 6 of his series on building a Swift HTTP framework, Dave Delong looks at adding the ability to chain HTTP loading requests. To achieve this, Dave adapts his HTTPLoading protocol, formalizing his concept of a next loader.
Posted on December 10, 2020
#http
#network
HTTP in Swift, Part 5: Testing and Mocking
Dave Delong's blog series on building a Swift HTTP framework is full of useful tips, and this particular entry is no different. In this part, Dave looks at testing and mocking and shows us how using an interface rather than a concretion enhances the utility and testability of his code.
Posted on December 3, 2020
#network
#http
HTTP in Swift, Part 4: Loading Requests
Part 4 of Dave Delong's series on building a Swift HTTP framework looks at how to send requests and receive responses. It's another excellent entry in the series, and Dave succeeds in demonstrating how simplicity is the ultimate sophistication.
Posted on November 24, 2020
#network
#http
HTTP in Swift, Part 3: Request Bodies
In part 3 in his series on building a Swift HTTP framework, Dave Delong takes a look at the body property of HTTP requests. Dave shows us how to implement a generalized body type in Swift, providing lots of code samples.
Posted on November 11, 2020
#network
#http
HTTP in Swift, Part 2: Basic Structures
Dave Delong continues his series of posts on HTTP in Swift. In this second part, Dave shows us how to transform the HTTP request and response structures from part one into the types we need to model them in Swift.
Posted on October 28, 2020
#network
#http
HTTP in Swift, Part 1: An Intro to HTTP
In this first post in a series on building a Swift HTTP framework, Dave Delong provides an introduction to HTTP. This looks like it is going to be a great series, and as Dave says, knowing the details of how HTTP works is one of the most valuable things a software engineer can know.
Posted on October 19, 2020
#network
#http