C# Class System.Net.Http.HttpContent

A base class representing an HTTP entity body and content headers.
Inheritance: IDisposable
Mostra file Open project: kumpera/mono Class Usage Examples

Private Properties

Property Type Description
CreateFixedMemoryStream FixedMemoryStream
GetEncodingFromBuffer System.Text.Encoding
StartsWith int

Public Methods

Method Description
CopyToAsync ( Stream stream ) : System.Threading.Tasks.Task
CopyToAsync ( Stream stream, TransportContext context ) : System.Threading.Tasks.Task
Dispose ( ) : void
LoadIntoBufferAsync ( ) : System.Threading.Tasks.Task
LoadIntoBufferAsync ( long maxBufferSize ) : System.Threading.Tasks.Task
ReadAsByteArrayAsync ( ) : Task
ReadAsStreamAsync ( ) : Task
ReadAsStringAsync ( ) : Task

Protected Methods

Method Description
CreateContentReadStreamAsync ( ) : Task
Dispose ( bool disposing ) : void
SerializeToStreamAsync ( Stream stream, TransportContext context ) : System.Threading.Tasks.Task
TryComputeLength ( long &length ) : bool

Private Methods

Method Description
CreateFixedMemoryStream ( long maxBufferSize ) : FixedMemoryStream
GetEncodingFromBuffer ( byte buffer, int length, int &preambleLength ) : Encoding
StartsWith ( byte array, int length, byte value ) : int

Method Details

CopyToAsync() public method

public CopyToAsync ( Stream stream ) : System.Threading.Tasks.Task
stream System.IO.Stream
return System.Threading.Tasks.Task

CopyToAsync() public method

public CopyToAsync ( Stream stream, TransportContext context ) : System.Threading.Tasks.Task
stream System.IO.Stream
context TransportContext
return System.Threading.Tasks.Task

CreateContentReadStreamAsync() protected method

protected CreateContentReadStreamAsync ( ) : Task
return Task

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

LoadIntoBufferAsync() public method

public LoadIntoBufferAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

LoadIntoBufferAsync() public method

public LoadIntoBufferAsync ( long maxBufferSize ) : System.Threading.Tasks.Task
maxBufferSize long
return System.Threading.Tasks.Task

ReadAsByteArrayAsync() public method

public ReadAsByteArrayAsync ( ) : Task
return Task

ReadAsStreamAsync() public method

public ReadAsStreamAsync ( ) : Task
return Task

ReadAsStringAsync() public method

public ReadAsStringAsync ( ) : Task
return Task

SerializeToStreamAsync() protected abstract method

protected abstract SerializeToStreamAsync ( Stream stream, TransportContext context ) : System.Threading.Tasks.Task
stream System.IO.Stream
context TransportContext
return System.Threading.Tasks.Task

TryComputeLength() protected abstract method

protected abstract TryComputeLength ( long &length ) : bool
length long
return bool