RequestContent Class

Definition

Represents the content sent as part of the Request.

public abstract class RequestContent : IDisposable
type RequestContent = class
    interface IDisposable
Public MustInherit Class RequestContent
Implements IDisposable
Inheritance
System.Object
RequestContent
Derived
Implements
System.IDisposable

Constructors

RequestContent()

Methods

Create(BinaryData)

Creates an instance of RequestContent that wraps a BinaryData.

Create(Byte[])

Creates an instance of RequestContent that wraps an System.Arrayof System.Byte.

Create(Byte[], Int32, Int32)

Creates an instance of RequestContent that wraps an System.Arrayof System.Byte.

Create(Object, ObjectSerializer)

Creates an instance of RequestContent that wraps a serialized version of an object.

Create(ReadOnlyMemory<Byte>)

Creates an instance of RequestContent that wraps a System.IO.Stream.

Create(ReadOnlySequence<Byte>)

Creates an instance of RequestContent that wraps a System.Buffers.ReadOnlySequence`1.

Create(Stream)

Creates an instance of RequestContent that wraps a System.IO.Stream.

Create(String)

Creates a RequestContent representing the UTF-8 Encoding of the given System.String/

Dispose()

Frees resources held by the RequestContent object.

TryComputeLength(Int64)

Attempts to compute the length of the underlying content, if available.

WriteTo(Stream, CancellationToken)

Writes contents of this object to an instance of System.IO.Stream.

WriteToAsync(Stream, CancellationToken)

Writes contents of this object to an instance of System.IO.Stream.

Operators

Implicit(BinaryData to RequestContent)

Creates a RequestContent that wraps a BinaryData.

Implicit(String to RequestContent)

Creates a RequestContent representing the UTF-8 Encoding of the given System.String.

Applies to