10 references to HttpProtocolException
Interop.FunctionalTests (10)
Http3\Http3RequestTests.cs (5)
577
var
innerEx = Assert.IsType<
HttpProtocolException
>(ex.InnerException);
639
var
protocolException = ex.GetProtocolException();
686
var
innerEx = Assert.IsType<
HttpProtocolException
>(ex.InnerException);
HttpClientHttp2InteropTests.cs (2)
743
await Assert.ThrowsAsync<
HttpProtocolException
>(() => streamingContent.SendAsync("Hello World").DefaultTimeout());
802
await Assert.ThrowsAsync<
HttpProtocolException
>(() => streamingContent.SendAsync("Hello World").DefaultTimeout());
HttpHelpers.cs (3)
22
public static
HttpProtocolException
GetProtocolException(this Exception ex)
27
if (current is
HttpProtocolException
httpProtocolException)
35
throw new Exception($"Couldn't find {nameof(
HttpProtocolException
)}. Original error: {ex}");