This question already has an answer here:
I am traveling from Delhi to London to Chicago to Pittsburgh via British Airways. I have a terminal change at Chicago airport and have a 2-hour window to do so. Will my immigration take place in Chicago or in Pittsburgh? Moreover, if I miss my flight, will the carrier British Airways provide me another flight to Pittsburgh or will it be my responsibility.