< Summary

Line coverage
4%
Covered lines: 27
Uncovered lines: 588
Coverable lines: 615
Total lines: 1159
Line coverage: 4.3%
Branch coverage
2%
Covered branches: 6
Total branches: 210
Branch coverage: 2.8%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
.cctor()100%11100%
AssertEncodingConstants(...)50%88100%
SetHeaders(...)100%110%
.ctor()50%22100%
CreateMemoryStreamFromBufferedContent()100%110%
ReadAsStringAsync()100%110%
ReadAsStringAsync(...)100%110%
ReadBufferedContentAsString()100%110%
ReadBufferAsString(...)0%20200%
ReadAsByteArrayAsync()100%110%
ReadAsByteArrayAsync(...)100%110%
ReadBufferedContentAsByteArray()100%110%
ReadAsStream()100%110%
ReadAsStream(...)0%660%
ReadAsStreamAsync()100%110%
ReadAsStreamAsync(...)0%880%
TryReadAsStream()0%10100%
SerializeToStream(...)100%110%
SerializeToStreamAsync(...)100%110%
CopyTo(...)0%220%
CopyToAsync(...)100%110%
CopyToAsync(...)100%110%
CopyToAsync(...)100%110%
CopyToAsync(...)100%110%
WaitAsync(System.Threading.Tasks.ValueTask)100%110%
InternalCopyToAsync(...)0%220%
LoadIntoBuffer(...)0%10100%
LoadIntoBufferAsync()100%110%
LoadIntoBufferAsync(...)100%110%
LoadIntoBufferAsync(...)100%110%
LoadIntoBufferAsync(...)0%660%
LoadIntoBufferAsyncCore(...)0%220%
CreateContentReadStream(...)100%110%
CreateContentReadStreamAsync()100%110%
CreateContentReadStreamAsync(...)100%110%
TryCreateContentReadStream()100%110%
GetComputedOrBufferLength()0%660%
CreateTemporaryBuffer(...)0%660%
Dispose(...)0%16160%
Dispose()100%110%
CheckDisposed()100%110%
CheckTaskNotNull(...)0%440%
StreamCopyExceptionNeedsWrapping(...)0%220%
GetStreamCopyException(...)0%220%
WrapStreamCopyException(...)0%220%
GetPreambleLength(...)0%22220%
TryDetectEncoding(...)0%880%
WaitAndReturnAsync(...)100%110%
CreateOverCapacityException(...)100%110%
.ctor(...)0%440%
Finalize()100%110%
Dispose(...)100%110%
ToArray()0%880%
GetSingleBuffer()100%110%
GetFirstBuffer()0%220%
CreateCopy()100%110%
ReallocateIfPooled()0%440%
Write(...)0%440%
GrowAndWrite(...)0%22220%
CopyToCore(...)0%880%
ReturnAllPooledBuffers()0%880%
Write(...)100%110%
WriteAsync(...)0%220%
WriteAsync(...)0%220%
BeginWrite(...)100%110%
EndWrite(...)100%110%
WriteByte(...)100%110%
Flush()100%110%
FlushAsync(...)100%110%
Read(...)100%110%
Seek(...)100%110%
SetLength(...)100%110%

File(s)

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

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

Methods/Properties

.cctor()
UTF8Preamble()
UTF32Preamble()
UnicodePreamble()
BigEndianUnicodePreamble()
AssertEncodingConstants(System.Text.Encoding,System.Int32,System.ReadOnlySpan`1<System.Byte>)
Headers()
SetHeaders(System.Net.Http.Headers.HttpContentHeaders)
IsBuffered()
.ctor()
CreateMemoryStreamFromBufferedContent()
ReadAsStringAsync()
ReadAsStringAsync(System.Threading.CancellationToken)
ReadBufferedContentAsString()
ReadBufferAsString(System.Net.Http.HttpContent/LimitArrayPoolWriteStream,System.Net.Http.Headers.HttpContentHeaders)
ReadAsByteArrayAsync()
ReadAsByteArrayAsync(System.Threading.CancellationToken)
ReadBufferedContentAsByteArray()
ReadAsStream()
ReadAsStream(System.Threading.CancellationToken)
ReadAsStreamAsync()
ReadAsStreamAsync(System.Threading.CancellationToken)
TryReadAsStream()
SerializeToStream(System.IO.Stream,System.Net.TransportContext,System.Threading.CancellationToken)
SerializeToStreamAsync(System.IO.Stream,System.Net.TransportContext,System.Threading.CancellationToken)
AllowDuplex()
CopyTo(System.IO.Stream,System.Net.TransportContext,System.Threading.CancellationToken)
CopyToAsync(System.IO.Stream)
CopyToAsync(System.IO.Stream,System.Threading.CancellationToken)
CopyToAsync(System.IO.Stream,System.Net.TransportContext)
CopyToAsync(System.IO.Stream,System.Net.TransportContext,System.Threading.CancellationToken)
WaitAsync(System.Threading.Tasks.ValueTask)
InternalCopyToAsync(System.IO.Stream,System.Net.TransportContext,System.Threading.CancellationToken)
LoadIntoBuffer(System.Int64,System.Threading.CancellationToken)
LoadIntoBufferAsync()
LoadIntoBufferAsync(System.Int64)
LoadIntoBufferAsync(System.Threading.CancellationToken)
LoadIntoBufferAsync(System.Int64,System.Threading.CancellationToken)
LoadIntoBufferAsyncCore(System.Threading.Tasks.Task,System.Net.Http.HttpContent/LimitArrayPoolWriteStream)
CreateContentReadStream(System.Threading.CancellationToken)
CreateContentReadStreamAsync()
CreateContentReadStreamAsync(System.Threading.CancellationToken)
TryCreateContentReadStream()
GetComputedOrBufferLength()
CreateTemporaryBuffer(System.Int64,System.Net.Http.HttpContent/LimitArrayPoolWriteStream&,System.Exception&)
Dispose(System.Boolean)
Dispose()
CheckDisposed()
CheckTaskNotNull(System.Threading.Tasks.Task)
StreamCopyExceptionNeedsWrapping(System.Exception)
GetStreamCopyException(System.Exception)
WrapStreamCopyException(System.Exception)
GetPreambleLength(System.ReadOnlySpan`1<System.Byte>,System.Text.Encoding)
TryDetectEncoding(System.ReadOnlySpan`1<System.Byte>,System.Text.Encoding&,System.Int32&)
WaitAndReturnAsync(System.Threading.Tasks.Task,TState,System.Func`2<TState,TResult>)
CreateOverCapacityException(System.Int64)
.ctor(System.Int32,System.Int64,System.Boolean)
Finalize()
Dispose(System.Boolean)
ToArray()
GetSingleBuffer()
GetFirstBuffer()
CreateCopy()
ReallocateIfPooled()
Write(System.ReadOnlySpan`1<System.Byte>)
GrowAndWrite(System.ReadOnlySpan`1<System.Byte>)
CopyToCore(System.Span`1<System.Byte>)
ReturnAllPooledBuffers()
Write(System.Byte[],System.Int32,System.Int32)
WriteAsync(System.Byte[],System.Int32,System.Int32,System.Threading.CancellationToken)
WriteAsync(System.ReadOnlyMemory`1<System.Byte>,System.Threading.CancellationToken)
BeginWrite(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)
EndWrite(System.IAsyncResult)
WriteByte(System.Byte)
Flush()
FlushAsync(System.Threading.CancellationToken)
Length()
CanWrite()
CanRead()
CanSeek()
Position()
Read(System.Byte[],System.Int32,System.Int32)
Seek(System.Int64,System.IO.SeekOrigin)
SetLength(System.Int64)