class HttpContent
in global :: System . Net . Http
A base class representing an HTTP entity body and content headers.
public Task CopyToAsync( Stream stream )
Serialize the HTTP content into a stream of bytes and copies it to the stream object provided as the parameter.
streamThe target stream.- Returns The task object representing the asynchronous operation.
public Task CopyToAsync( Stream stream, TransportContext context )
Serialize the HTTP content into a stream of bytes and copies it to the stream object provided as the parameter.
streamThe target stream.contextInformation about the transport (channel binding token, for example). This parameter may be .- Returns The task object representing the asynchronous operation.
public HttpContentHeaders Headers { get; }
Gets the HTTP content headers as defined in RFC 2616.
- Returns The content headers as defined in RFC 2616.
public Task LoadIntoBufferAsync( long maxBufferSize )
Serialize the HTTP content to a memory buffer as an asynchronous operation.
maxBufferSizeThe maximum size, in bytes, of the buffer to use.- Returns The task object representing the asynchronous operation.
public string ToString( )
😔 No documentation found.
public Type GetType( )
😔 No documentation found.
public void Dispose( )
😔 No documentation found.
public Task LoadIntoBufferAsync( long maxBufferSize, CancellationToken cancellationToken )
😔 No documentation found.
public Task LoadIntoBufferAsync( CancellationToken cancellationToken )
😔 No documentation found.
public Task LoadIntoBufferAsync( )
😔 No documentation found.
public Task CopyToAsync( Stream stream, TransportContext context, CancellationToken cancellationToken )
😔 No documentation found.
public int GetHashCode( )
😔 No documentation found.
public void CopyTo( Stream stream, TransportContext context, CancellationToken cancellationToken )
😔 No documentation found.
public Task<Stream> ReadAsStreamAsync( CancellationToken cancellationToken )
😔 No documentation found.
public Task<Stream> ReadAsStreamAsync( )
😔 No documentation found.
public Stream ReadAsStream( CancellationToken cancellationToken )
😔 No documentation found.
public Stream ReadAsStream( )
😔 No documentation found.
public Task<byte[]> ReadAsByteArrayAsync( CancellationToken cancellationToken )
😔 No documentation found.
public Task<byte[]> ReadAsByteArrayAsync( )
😔 No documentation found.
public Task<string> ReadAsStringAsync( CancellationToken cancellationToken )
😔 No documentation found.
public Task<string> ReadAsStringAsync( )
😔 No documentation found.
public bool Equals( object obj )
😔 No documentation found.
public Task CopyToAsync( Stream stream, CancellationToken cancellationToken )
😔 No documentation found.