Setting a timeout Write a program that uses the HTTP Client API for setting the amount of time we want to wait for a response (timeout).