Why this matters
Reduces copy-paste errors and centralizes cross-cutting concerns.
Factor repeated HTTP call setup/parsing/retry into a reusable helper or client.
Reduces copy-paste errors and centralizes cross-cutting concerns.
Side-by-side examples engineers can pattern-match during review.
HttpRequest r1=...; client.send(r1,...);
HttpRequest r2=...; client.send(r2,...);ApiClient api = new ApiClient(client);
api.get("/users"); api.post("/orders", body);build request + send duplicatedclient abstraction encapsulates callsFrom the same buckets as this rule.