Behavior of default HTTP client querying data from a bad server Listing 4.1 Custom HTTP client with time-out Listing 4.2 Listing 4.3 Listing 4.4 Existing fetch remote resource happy path test Custom HTTP client with redirect Listing 4.5 Logging middleware Listing 4.6 Middleware to add headers Listing 4.7 Listing 4.8 Connection pooling illustration Listing 4.9