RequestMessage Class

RequestMessage class

Represents a request message.

public class RequestMessage : IDisposable

Constructors

NameDescription
RequestMessage(string)Initializes a new instance of the RequestMessage class.
RequestMessage(Url)Initializes a new instance of the RequestMessage class.

Properties

NameDescription
Content { get; set; }Gets or sets the request content.
CookieContainer { get; set; }Gets or sets the cookie container used to store server cookies by the handler.
Credentials { get; set; }Gets or sets authentication information for the request.
Headers { get; }Gets the RequestHeaders.
Method { get; set; }Gets or sets the HttpMethod.
PreAuthenticate { get; set; }Gets or sets a value that indicates whether to send an Authorization header with the request.
RequestUri { get; set; }Gets or sets the request URI.
Timeout { get; set; }The number of milliseconds to wait before the request times out. The default value is 100,000 milliseconds (100 seconds).

Methods

NameDescription
Dispose()Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

See Also