Unify HTTP Client Responses
Adapt inconsistent HTTP client interfaces so they return a unified response shape.
We'll cover the following...
We'll cover the following...
Problem statement
Your team uses two different HTTP clients in different services. Both expose an async get(url) method, but their response formats don’t match:
One client returns an object like
{ data, status }. ...