共用方式為


RequestMessage Class

Definition

Represents a request in the processing pipeline of the Azure Cosmos DB SDK.

public class RequestMessage : IDisposable
type RequestMessage = class
    interface IDisposable
Public Class RequestMessage
Implements IDisposable
Inheritance
RequestMessage
Implements

Remarks

It is expected that direct property access is used for properties that will be read and used within the Azure Cosmos SDK pipeline, for example Microsoft.Azure.Cosmos.RequestMessage.OperationType. Properties should be used for any other property that needs to be sent to the backend but will not be read nor used within the Azure Cosmos DB SDK pipeline. Headers should be used for HTTP headers that need to be passed down and sent to the backend.

Constructors

RequestMessage()

Create a RequestMessage

RequestMessage(HttpMethod, Uri)

Create a RequestMessage

Properties

Content

Gets or sets the current RequestMessage payload.

Headers

Gets the current RequestMessage HTTP headers.

Method

Gets the HttpMethod for the current request.

Properties

Request properties Per request context available to handlers. These will not be automatically included into the wire.

RequestUri

Gets the Uri for the current request.

Methods

Dispose()

Disposes the current RequestMessage.

Dispose(Boolean)

Disposes of the request message content

Applies to