Table of Contents

Class HttpRequestMessagePropertyKeys

Namespace
Kampute.HttpClient
Assembly
Kampute.HttpClient.dll

Defines constant keys for storing and identifying custom properties in an HttpRequestMessage.

public static class HttpRequestMessagePropertyKeys
Inheritance
HttpRequestMessagePropertyKeys
Inherited Members

Fields

CloneGeneration

A key used to store and identify the property within an HttpRequestMessage that tracks how many times the request has been cloned.

public const string CloneGeneration = "HttpRestClient.CloneGeneration"

Field Value

string

Remarks

The value of this property is of type int.

ErrorHandler

A key used to store and identify the property within an HttpRequestMessage that references the IHttpErrorHandler instance associated with the request, which is responsible for processing and potentially recovering from errors in the response.

public const string ErrorHandler = "HttpRestClient.ErrorHandler"

Field Value

string

Remarks

The value of this property is of type IHttpErrorHandler.

ResponseObjectType

A key used to store and identify the property within an HttpRequestMessage that identifies the type of expected .NET object in the response.

public const string ResponseObjectType = "HttpRestClient.ResponseObjectType"

Field Value

string

Remarks

The value of this property is of type Type.

RetryScheduler

A key used to store and identify the property within an HttpRequestMessage that references the IRetryScheduler instance associated with the request which is responsible for scheduling the retry logic for transient failures.

public const string RetryScheduler = "HttpRestClient.RetryScheduler"

Field Value

string

Remarks

The value of this property is of type IRetryScheduler.

SkipUnauthorizedHandling

A key used to store and identify the property within an HttpRequestMessage that indicates '401 Unauthorized' errors should not be automatically handled.

public const string SkipUnauthorizedHandling = "HttpRestClient.SkipUnauthorizedHandling"

Field Value

string

Remarks

The value of this property is of type bool.

TransactionId

A key used to store and identify the property within an HttpRequestMessage that identifies the request and its clones.

public const string TransactionId = "HttpRestClient.TransactionId"

Field Value

string

Remarks

The value of this property is of type Guid.