The request API is used if the size of the response is less than 5 MB. The requestInStream API is used if the size of the response is greater than 5 MB.