Class RequestMessage

Class RequestMessage

Namespace: Aspose.Html.Net
Assembly: Aspose.HTML.dll (25.2.0)

Represents a request message.

[ComVisible(true)]
public class RequestMessage : IDisposable

Inheritance

objectRequestMessage

Implements

IDisposable

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

RequestMessage(string)

Initializes a new instance of the Aspose.Html.Net.RequestMessage class.

public RequestMessage(string address)

Parameters

address string

The request address.

RequestMessage(Url)

Initializes a new instance of the Aspose.Html.Net.RequestMessage class.

public RequestMessage(Url uri)

Parameters

uri Url

The request URL.

Properties

Content

Gets or sets the request content.

public Content Content { get; set; }

Property Value

Content

CookieContainer

Gets or sets the cookie container used to store server cookies by the handler.

public CookieContainer CookieContainer { get; set; }

Property Value

CookieContainer

Credentials

Gets or sets authentication information for the request.

public ICredentials Credentials { get; set; }

Property Value

ICredentials

Headers

Gets the Aspose.Html.Net.RequestHeaders.

public RequestHeaders Headers { get; }

Property Value

RequestHeaders

Method

Gets or sets the Aspose.Html.Net.HttpMethod.

public HttpMethod Method { get; set; }

Property Value

HttpMethod

PreAuthenticate

Gets or sets a value that indicates whether to send an Authorization header with the request.

public bool PreAuthenticate { get; set; }

Property Value

bool

RequestUri

Gets or sets the request URI.

public Url RequestUri { get; set; }

Property Value

Url

Timeout

The number of milliseconds to wait before the request times out. The default value is 100,000 milliseconds (100 seconds).

public TimeSpan Timeout { get; set; }

Property Value

TimeSpan

Methods

Dispose(bool)

Releases unmanaged and - optionally - managed resources.

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

See Also

IDisposable