HttpMessage Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a context flowing through the HttpPipeline.
public sealed class HttpMessage : IDisposable
type HttpMessage = class
interface IDisposable
Public NotInheritable Class HttpMessage
Implements IDisposable
- Inheritance
-
HttpMessage
- Implements
Constructors
HttpMessage(Request, ResponseClassifier) |
Creates a new instance of HttpMessage. |
Properties
BufferResponse |
Gets or sets the value indicating if response would be buffered as part of the pipeline. Defaults to true. |
CancellationToken |
The CancellationToken to be used during the HttpMessage processing. |
HasResponse |
Gets the value indicating if the response is set on this message. |
NetworkTimeout |
Gets or sets the network timeout value for this message. If |
ProcessingContext |
The processing context for the message. |
Request |
Gets the Request associated with this message. |
Response |
Gets the Response associated with this message. Throws an exception if it wasn't set yet. To avoid the exception use HasResponse property to check. |
ResponseClassifier |
The ResponseClassifier instance to use for response classification during pipeline invocation. |
Methods
Dispose() |
Disposes the request and response. |
ExtractResponseContent() |
Returns the response content stream and releases it ownership to the caller. After calling this methods using ContentStream or Content would result in exception. |
SetProperty(String, Object) |
Sets a property that modifies the pipeline behavior. Please refer to individual policies documentation on what properties it supports. |
SetProperty(Type, Object) |
Sets a property that is stored with this HttpMessage instance and can be used for modifying pipeline behavior. Internal properties can be keyed with internal types to prevent external code from overwriting these values. |
TryGetProperty(String, Object) |
Gets a property that modifies the pipeline behavior. Please refer to individual policies documentation on what properties it supports. |
TryGetProperty(Type, Object) |
Gets a property that is stored with this HttpMessage instance and can be used for modifying pipeline behavior. |