< Summary

Information
Class: System.Net.Http.HttpConnection
Assembly: System.Net.Http
File(s): File 1: https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ChunkedEncodingReadStream.cs
File 2: https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ChunkedEncodingWriteStream.cs
File 3: https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ConnectionCloseReadStream.cs
File 4: https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ContentLengthReadStream.cs
File 5: https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ContentLengthWriteStream.cs
File 6: https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnection.cs
File 7: https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpContentReadStream.cs
File 8: https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpContentWriteStream.cs
File 9: https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/RawConnectionStream.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 2083
Coverable lines: 2083
Total lines: 3633
Line coverage: 0%
Branch coverage
0%
Covered branches: 0
Total branches: 802
Branch coverage: 0%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
File 1: .ctor(...)100%110%
File 1: Read(...)0%28280%
File 1: ReadAsync(...)0%12120%
File 1: ReadAsyncCore(...)0%20200%
File 1: CopyToAsync(...)0%440%
File 1: CopyToAsyncCore(...)0%660%
File 1: PeekChunkFromConnectionBuffer()100%110%
File 1: ReadChunksFromConnectionBuffer(...)0%660%
File 1: ReadChunkFromConnectionBuffer(...)0%34340%
File 1: ValidateChunkExtension(...)0%880%
File 1: DrainAsync(...)0%16160%
File 1: Fill()0%220%
File 1: FillAsync()0%220%
File 2: .cctor()100%110%
File 2: .ctor(...)100%110%
File 2: Write(...)0%220%
File 2: WriteAsync(...)0%220%
File 2: WriteChunkAsync(System.Net.Http.HttpConnection,System.ReadOnlyMemory`1<System.Byte>)100%110%
File 2: FinishAsync(...)0%220%
File 3: .ctor(...)100%110%
File 3: Read(...)0%660%
File 3: ReadAsync(...)0%880%
File 3: CopyToAsync(...)0%660%
File 3: CompleteCopyToAsync(...)100%110%
File 3: Finish(...)100%110%
File 4: .ctor(...)100%110%
File 4: Read(...)0%10100%
File 4: ReadAsync(...)0%12120%
File 4: CopyToAsync(...)0%660%
File 4: CompleteCopyToAsync(...)100%110%
File 4: Finish()100%110%
File 4: ReadFromConnectionBuffer(...)0%220%
File 4: DrainAsync(...)0%12120%
File 5: .ctor(...)100%110%
File 5: Write(...)0%220%
File 5: WriteAsync(...)0%220%
File 5: FinishAsync(...)0%220%
File 6: .cctor()100%110%
File 6: .ctor(...)0%220%
File 6: Finalize()100%110%
File 6: Dispose()100%110%
File 6: Dispose(...)0%880%
File 6: PrepareForReuse(...)0%14140%
File 6: TryOwnScavengingTaskCompletion()0%220%
File 6: TryReturnScavengingTaskCompletionOwnership()0%440%
File 6: CheckUsabilityOnScavenge()0%440%
File 6: ReadAheadWithZeroByteReadAsync()0%660%
File 6: TransitionToCompletedAndTryOwnCompletion()0%220%
File 6: CheckKeepAliveTimeoutExceeded()0%220%
File 6: ConsumeFromRemainingBuffer(...)100%110%
File 6: WriteHeaders(...)0%32320%
File 6: WriteHost(System.Uri)0%440%
File 6: WriteHeaderCollection(...)0%18180%
File 6: WriteCRLF()100%110%
File 6: WriteBytes(...)100%110%
File 6: WriteAsciiString(...)100%110%
File 6: WriteString(...)0%440%
File 6: ThrowForInvalidCharEncoding()100%110%
File 6: SendAsync(...)0%1201200%
File 6: MapSendException(...)0%10100%
File 6: CreateRequestContentStream(...)0%440%
File 6: RegisterCancellation(...)0%220%
File 6: SendRequestContentAsync(...)0%880%
File 6: SendRequestContentWithExpect100ContinueAsync(...)0%660%
File 6: ParseStatusLine(...)0%880%
File 6: ParseStatusLineCore(...)0%26260%
File 6: ParseHeaders(...)0%440%
File 6: ParseHeadersCore(...)0%26260%
File 6: ThrowForInvalidHeaderLine(System.ReadOnlySpan`1<System.Byte>,System.Int32)100%110%
File 6: AddResponseHeader(...)0%30300%
File 6: ThrowForEmptyHeaderName()100%110%
File 6: ThrowForInvalidHeaderName(System.ReadOnlySpan`1<System.Byte>)100%110%
File 6: ThrowExceededAllowedReadLineBytes()100%110%
File 6: ProcessKeepAliveHeader(...)0%18180%
File 6: WriteToBuffer(...)100%110%
File 6: Write(...)0%660%
File 6: WriteAsync(...)0%880%
File 6: AwaitFlushAndWriteAsync(System.Threading.Tasks.ValueTask,System.ReadOnlyMemory`1<System.Byte>)0%220%
File 6: WriteWithoutBuffering(...)0%440%
File 6: WriteWithoutBufferingAsync(...)0%440%
File 6: FlushThenWriteWithoutBufferingAsync(...)100%110%
File 6: WriteHexInt32Async(...)0%440%
File 6: Flush()0%220%
File 6: FlushAsync(...)0%220%
File 6: WriteToStream(...)0%220%
File 6: WriteToStreamAsync(...)0%440%
File 6: TryReadNextChunkedLine(...)0%14140%
File 6: InitialFillAsync(...)0%440%
File 6: FillAsync(...)0%660%
File 6: FillForHeadersAsync(...)0%220%
File 6: ReadUntilEndOfHeaderAsync(System.Boolean)0%12120%
File 6: TryFindEndOfLine(System.ReadOnlySpan`1<System.Byte>,System.Int32&)0%880%
File 6: ReadFromBuffer(...)100%110%
File 6: Read(...)0%440%
File 6: ReadAsync(...)0%440%
File 6: ReadAndLogBytesReadAsync(System.Memory`1<System.Byte>)0%220%
File 6: ReadBuffered(...)0%660%
File 6: ReadBufferedAsync(...)0%440%
File 6: ReadBufferedAsyncCore()0%440%
File 6: CopyFromBufferAsync(...)0%440%
File 6: CopyToUntilEofAsync(...)0%440%
File 6: CopyToUntilEofWithExistingBufferedDataAsync(...)0%220%
File 6: CopyToContentLengthAsync(...)0%18180%
File 6: Acquire()100%110%
File 6: Release()0%220%
File 6: DetachFromPool()100%110%
File 6: CompleteResponse()0%880%
File 6: DrainResponseAsync(...)0%12120%
File 6: ReturnConnectionToPool()0%440%
File 6: ToString()100%110%
File 6: Trace(...)0%440%
File 7: .ctor(...)100%110%
File 7: Write(...)100%110%
File 7: WriteAsync(...)100%110%
File 7: DrainAsync(...)100%110%
File 7: Dispose(...)0%660%
File 7: DrainOnDisposeAsync()0%660%
File 8: .ctor(...)100%110%
File 8: Flush()0%220%
File 8: FlushAsync(...)0%220%
File 8: Read(...)100%110%
File 8: ReadAsync(...)100%110%
File 8: CopyToAsync(...)100%110%
File 9: .ctor(...)0%220%
File 9: Read(...)0%660%
File 9: ReadAsync()0%880%
File 9: CopyToAsync(...)0%660%
File 9: CompleteCopyToAsync(...)100%110%
File 9: Finish(...)100%110%
File 9: Write(...)0%440%
File 9: WriteAsync(...)0%880%
File 9: Flush()0%220%
File 9: FlushAsync(...)0%660%
File 9: WaitWithConnectionCancellationAsync(...)100%110%

File(s)

https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ChunkedEncodingReadStream.cs

Error during reading file 'https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ChunkedEncodingReadStream.cs': Response status code does not indicate success: 404 (Not Found).

https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ChunkedEncodingWriteStream.cs

Error during reading file 'https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ChunkedEncodingWriteStream.cs': Response status code does not indicate success: 404 (Not Found).

https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ConnectionCloseReadStream.cs

Error during reading file 'https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ConnectionCloseReadStream.cs': Response status code does not indicate success: 404 (Not Found).

https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ContentLengthReadStream.cs

Error during reading file 'https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ContentLengthReadStream.cs': Response status code does not indicate success: 404 (Not Found).

https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ContentLengthWriteStream.cs

Error during reading file 'https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ContentLengthWriteStream.cs': Response status code does not indicate success: 404 (Not Found).

https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnection.cs

Error during reading file 'https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnection.cs': Response status code does not indicate success: 404 (Not Found).

https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpContentReadStream.cs

Error during reading file 'https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpContentReadStream.cs': Response status code does not indicate success: 404 (Not Found).

https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpContentWriteStream.cs

Error during reading file 'https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpContentWriteStream.cs': Response status code does not indicate success: 404 (Not Found).

https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/RawConnectionStream.cs

Error during reading file 'https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/RawConnectionStream.cs': Response status code does not indicate success: 404 (Not Found).

Methods/Properties

.ctor(System.Net.Http.HttpConnection,System.Net.Http.HttpResponseMessage)
Read(System.Span`1<System.Byte>)
ReadAsync(System.Memory`1<System.Byte>,System.Threading.CancellationToken)
ReadAsyncCore(System.Memory`1<System.Byte>,System.Threading.CancellationToken)
CopyToAsync(System.IO.Stream,System.Int32,System.Threading.CancellationToken)
CopyToAsyncCore(System.IO.Stream,System.Threading.CancellationToken)
PeekChunkFromConnectionBuffer()
ReadChunksFromConnectionBuffer(System.Span`1<System.Byte>,System.Threading.CancellationTokenRegistration)
ReadChunkFromConnectionBuffer(System.Int32,System.Threading.CancellationTokenRegistration)
ValidateChunkExtension(System.ReadOnlySpan`1<System.Byte>)
NeedsDrain()
DrainAsync(System.Int32)
Fill()
FillAsync()
.cctor()
.ctor(System.Net.Http.HttpConnection)
Write(System.ReadOnlySpan`1<System.Byte>)
WriteAsync(System.ReadOnlyMemory`1<System.Byte>,System.Threading.CancellationToken)
WriteChunkAsync(System.Net.Http.HttpConnection,System.ReadOnlyMemory`1<System.Byte>)
FinishAsync(System.Boolean)
.ctor(System.Net.Http.HttpConnection)
Read(System.Span`1<System.Byte>)
ReadAsync(System.Memory`1<System.Byte>,System.Threading.CancellationToken)
CopyToAsync(System.IO.Stream,System.Int32,System.Threading.CancellationToken)
CompleteCopyToAsync(System.Threading.Tasks.Task,System.Net.Http.HttpConnection,System.Threading.CancellationToken)
Finish(System.Net.Http.HttpConnection)
.ctor(System.Net.Http.HttpConnection,System.UInt64)
Read(System.Span`1<System.Byte>)
ReadAsync(System.Memory`1<System.Byte>,System.Threading.CancellationToken)
CopyToAsync(System.IO.Stream,System.Int32,System.Threading.CancellationToken)
CompleteCopyToAsync(System.Threading.Tasks.Task,System.Threading.CancellationToken)
Finish()
ReadFromConnectionBuffer(System.Int32)
NeedsDrain()
DrainAsync(System.Int32)
.ctor(System.Net.Http.HttpConnection,System.Int64)
Write(System.ReadOnlySpan`1<System.Byte>)
WriteAsync(System.ReadOnlyMemory`1<System.Byte>,System.Threading.CancellationToken)
FinishAsync(System.Boolean)
.cctor()
.ctor(System.Net.Http.HttpConnectionPool,System.IO.Stream,System.Net.TransportContext,System.Diagnostics.Activity,System.Net.IPEndPoint,System.Int64)
Finalize()
Dispose()
Dispose(System.Boolean)
ReadAheadTaskHasStarted()
PrepareForReuse(System.Boolean)
TryOwnScavengingTaskCompletion()
TryReturnScavengingTaskCompletionOwnership()
CheckUsabilityOnScavenge()
ReadAheadWithZeroByteReadAsync()
TransitionToCompletedAndTryOwnCompletion()
CheckKeepAliveTimeoutExceeded()
TransportContext()
Kind()
ReadBufferSize()
RemainingBuffer()
ConsumeFromRemainingBuffer(System.Int32)
WriteHeaders(System.Net.Http.HttpRequestMessage)
WriteHost(System.Uri)
WriteHeaderCollection(System.Net.Http.Headers.HttpHeaders,System.String)
WriteCRLF()
WriteBytes(System.ReadOnlySpan`1<System.Byte>)
WriteAsciiString(System.String)
WriteString(System.String,System.Text.Encoding)
ThrowForInvalidCharEncoding()
SendAsync(System.Net.Http.HttpRequestMessage,System.Boolean,System.Threading.CancellationToken)
MapSendException(System.Exception,System.Threading.CancellationToken,System.Exception&)
CreateRequestContentStream(System.Net.Http.HttpRequestMessage)
RegisterCancellation(System.Threading.CancellationToken)
SendRequestContentAsync(System.Net.Http.HttpRequestMessage,System.Net.Http.HttpConnection/HttpContentWriteStream,System.Boolean,System.Threading.CancellationToken)
SendRequestContentWithExpect100ContinueAsync(System.Net.Http.HttpRequestMessage,System.Threading.Tasks.Task`1<System.Boolean>,System.Net.Http.HttpConnection/HttpContentWriteStream,System.Threading.Timer,System.Boolean,System.Threading.CancellationToken)
ParseStatusLine(System.Net.Http.HttpResponseMessage)
ParseStatusLineCore(System.Span`1<System.Byte>,System.Net.Http.HttpResponseMessage)
ParseHeaders(System.Net.Http.HttpResponseMessage,System.Boolean)
ParseHeadersCore(System.Span`1<System.Byte>,System.Net.Http.HttpResponseMessage,System.Boolean)
ThrowForInvalidHeaderLine(System.ReadOnlySpan`1<System.Byte>,System.Int32)
AddResponseHeader(System.ReadOnlySpan`1<System.Byte>,System.ReadOnlySpan`1<System.Byte>,System.Net.Http.HttpResponseMessage,System.Boolean)
ThrowForEmptyHeaderName()
ThrowForInvalidHeaderName(System.ReadOnlySpan`1<System.Byte>)
ThrowExceededAllowedReadLineBytes()
ProcessKeepAliveHeader(System.String)
WriteToBuffer(System.ReadOnlySpan`1<System.Byte>)
Write(System.ReadOnlySpan`1<System.Byte>)
WriteAsync(System.ReadOnlyMemory`1<System.Byte>)
AwaitFlushAndWriteAsync(System.Threading.Tasks.ValueTask,System.ReadOnlyMemory`1<System.Byte>)
WriteWithoutBuffering(System.ReadOnlySpan`1<System.Byte>)
WriteWithoutBufferingAsync(System.ReadOnlyMemory`1<System.Byte>,System.Boolean)
FlushThenWriteWithoutBufferingAsync(System.ReadOnlyMemory`1<System.Byte>,System.Boolean)
WriteHexInt32Async(System.Int32,System.Boolean)
Flush()
FlushAsync(System.Boolean)
WriteToStream(System.ReadOnlySpan`1<System.Byte>)
WriteToStreamAsync(System.ReadOnlyMemory`1<System.Byte>,System.Boolean)
TryReadNextChunkedLine(System.ReadOnlySpan`1<System.Byte>&)
InitialFillAsync(System.Boolean)
FillAsync(System.Boolean)
FillForHeadersAsync(System.Boolean)
ReadUntilEndOfHeaderAsync(System.Boolean)
TryFindEndOfLine(System.ReadOnlySpan`1<System.Byte>,System.Int32&)
ReadFromBuffer(System.Span`1<System.Byte>)
Read(System.Span`1<System.Byte>)
ReadAsync(System.Memory`1<System.Byte>)
ReadAndLogBytesReadAsync(System.Memory`1<System.Byte>)
ReadBuffered(System.Span`1<System.Byte>)
ReadBufferedAsync(System.Memory`1<System.Byte>)
ReadBufferedAsyncCore()
CopyFromBufferAsync(System.IO.Stream,System.Boolean,System.Int32,System.Threading.CancellationToken)
CopyToUntilEofAsync(System.IO.Stream,System.Boolean,System.Int32,System.Threading.CancellationToken)
CopyToUntilEofWithExistingBufferedDataAsync(System.IO.Stream,System.Boolean,System.Int32,System.Threading.CancellationToken)
CopyToContentLengthAsync(System.IO.Stream,System.Boolean,System.UInt64,System.Int32,System.Threading.CancellationToken)
Acquire()
Release()
DetachFromPool()
CompleteResponse()
DrainResponseAsync(System.Net.Http.HttpResponseMessage,System.Threading.CancellationToken)
ReturnConnectionToPool()
ToString()
Trace(System.String,System.String)
.ctor(System.Net.Http.HttpConnection)
CanRead()
CanWrite()
Write(System.ReadOnlySpan`1<System.Byte>)
WriteAsync(System.ReadOnlyMemory`1<System.Byte>,System.Threading.CancellationToken)
NeedsDrain()
IsDisposed()
CanReadFromConnection()
DrainAsync(System.Int32)
Dispose(System.Boolean)
DrainOnDisposeAsync()
BytesWritten()
.ctor(System.Net.Http.HttpConnection)
CanRead()
CanWrite()
Flush()
FlushAsync(System.Threading.CancellationToken)
Read(System.Span`1<System.Byte>)
ReadAsync(System.Memory`1<System.Byte>,System.Threading.CancellationToken)
CopyToAsync(System.IO.Stream,System.Int32,System.Threading.CancellationToken)
.ctor(System.Net.Http.HttpConnection)
CanRead()
CanWrite()
Read(System.Span`1<System.Byte>)
ReadAsync()
CopyToAsync(System.IO.Stream,System.Int32,System.Threading.CancellationToken)
CompleteCopyToAsync(System.Threading.Tasks.Task,System.Net.Http.HttpConnection,System.Threading.CancellationToken)
Finish(System.Net.Http.HttpConnection)
Write(System.ReadOnlySpan`1<System.Byte>)
WriteAsync(System.ReadOnlyMemory`1<System.Byte>,System.Threading.CancellationToken)
Flush()
FlushAsync(System.Threading.CancellationToken)
WaitWithConnectionCancellationAsync(System.Threading.Tasks.ValueTask,System.Net.Http.HttpConnection,System.Threading.CancellationToken)