← Graph

Should everyone just build an HTTP proxy class up front?

question 2 connections

Audience member observes that projects repeatedly hit this problem and asks whether, in hindsight, Szymon would route all HTTP through a single class he owned (wrapping Faraday or another client). Szymon agrees it would be a great improvement but there was no time on this project; 'the simplest things are sometimes the best and don't come to mind early enough'.

answer_summary
Yes in principle — a single owned HTTP-request class would have made replay trivial — but there was no time on this project.
question Should everyone just build an HTTP proxy class up front?
about
Faraday tool
Audience member mentions wrapping Faraday behind a single owned HTTP class.
question Should everyone just build an HTTP proxy class up front?
asked_at
Asked during the talk's Q&A.

Provenance