Condividi tramite


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
RequestContent
Implements

Constructors

RequestContent()

Methods

Create(BinaryData)

Creates an instance of RequestContent that wraps a BinaryData.

Create(Byte[], Int32, Int32)

Creates an instance of RequestContent that wraps an Arrayof Byte.

Create(Byte[])

Creates an instance of RequestContent that wraps an Arrayof Byte.

Create(DynamicData)

Creates an instance of RequestContent that wraps a DynamicData.

Create(Object, JsonPropertyNames, String)

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

Create(Object, ObjectSerializer)

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

Create(Object)

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

Create(ReadOnlyMemory<Byte>)

Creates an instance of RequestContent that wraps a Stream.

Create(ReadOnlySequence<Byte>)

Creates an instance of RequestContent that wraps a ReadOnlySequence<T>.

Create(Stream)

Creates an instance of RequestContent that wraps a Stream.

Create(String)

Creates a RequestContent representing the UTF-8 Encoding of the given 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 Stream.

WriteToAsync(Stream, CancellationToken)

Writes contents of this object to an instance of Stream.

Operators

Implicit(BinaryData to RequestContent)

Creates a RequestContent that wraps a BinaryData.

Implicit(DynamicData to RequestContent)

Creates a RequestContent that wraps a DynamicData.

Implicit(String to RequestContent)

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

Applies to