Add a function to check if a request is completely sent.