'Internal handler for when a request is complete, and we expect no
further data for that request.
@param event: The Hyper-h2 event that encodes information about the
completed stream.
@type event: L{h2.events.StreamEnded}'

def _requestEnded(self, event):

    stream = self.streams[event.stream_id]
    stream.requestComplete()
