37 references to ResponseProtocolState
System.Net.Http (37)
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (37)
47private ResponseProtocolState _responseProtocolState; 100_responseProtocolState = ResponseProtocolState.ExpectingStatus; 158public bool ExpectResponseData => _responseProtocolState == ResponseProtocolState.ExpectingData; 469_responseProtocolState = ResponseProtocolState.Aborted; 622if (_responseProtocolState == ResponseProtocolState.Aborted) 628if (_responseProtocolState == ResponseProtocolState.ExpectingHeaders) 634if (_responseProtocolState != ResponseProtocolState.ExpectingStatus) 647_responseProtocolState = ResponseProtocolState.ExpectingIgnoredHeaders; 662_responseProtocolState = ResponseProtocolState.ExpectingHeaders; 686if (_responseProtocolState == ResponseProtocolState.Aborted) 692if (_responseProtocolState == ResponseProtocolState.ExpectingIgnoredHeaders) 698if (_responseProtocolState != ResponseProtocolState.ExpectingHeaders && _responseProtocolState != ResponseProtocolState.ExpectingTrailingHeaders) 708if (_responseProtocolState == ResponseProtocolState.ExpectingTrailingHeaders) 768case ResponseProtocolState.ExpectingStatus: 769case ResponseProtocolState.Aborted: 772case ResponseProtocolState.ExpectingData: 773_responseProtocolState = ResponseProtocolState.ExpectingTrailingHeaders; 792case ResponseProtocolState.Aborted: 795case ResponseProtocolState.ExpectingHeaders: 796_responseProtocolState = endStream ? ResponseProtocolState.Complete : ResponseProtocolState.ExpectingData; 800case ResponseProtocolState.ExpectingTrailingHeaders: 806_responseProtocolState = ResponseProtocolState.Complete; 809case ResponseProtocolState.ExpectingIgnoredHeaders: 817_responseProtocolState = ResponseProtocolState.ExpectingStatus; 853if (_responseProtocolState == ResponseProtocolState.ExpectingData) 875case ResponseProtocolState.ExpectingData: 878case ResponseProtocolState.Aborted: 899_responseProtocolState = ResponseProtocolState.Complete; 971if (canRetry && _responseProtocolState != ResponseProtocolState.ExpectingStatus) 1025if (_responseProtocolState == ResponseProtocolState.Aborted) 1046return (false, _responseProtocolState == ResponseProtocolState.Complete && _responseBuffer.IsEmpty); 1122else if (_responseProtocolState == ResponseProtocolState.Complete) 1127Debug.Assert(_responseProtocolState == ResponseProtocolState.ExpectingData || _responseProtocolState == ResponseProtocolState.ExpectingTrailingHeaders); 1379if (_responseBuffer.IsEmpty && _responseProtocolState == ResponseProtocolState.Complete)