## RequestMessage class

Represents a request message.

```java
public class RequestMessage : IDisposable
```

## Constructors

| Name | Description |
| --- | --- |
| [RequestMessage](requestmessage/#constructor_1)(String) | Initializes a new instance of the `RequestMessage` class. |
| [RequestMessage](requestmessage/#constructor)(Url) | Initializes a new instance of the `RequestMessage` class. |

## Properties

| Name | Description |
| --- | --- |
[getContent]
[setContent] Gets or sets the request content. |
[getCookieContainer]
[setCookieContainer] Gets or sets the cookie container used to store server cookies by the handler. |
[getCredentials]
[setCredentials] Gets or sets authentication information for the request. |
| [getHeaders](../../com.aspose.html.net/requestmessage/headers/) Gets the [`RequestHeaders`](../requestheaders/). |
[getMethod]
[setMethod] Gets or sets the [`HttpMethod`](../httpmethod/). |
[getPreAuthenticate]
[setPreAuthenticate] Gets or sets a value that indicates whether to send an Authorization header with the request. |
[getRequestUri]
[setRequestUri] Gets or sets the request URI. |
[getTimeout]
[setTimeout] The number of milliseconds to wait before the request times out. The default value is 100,000 milliseconds (100 seconds). |

## Methods

| Name | Description |
| --- | --- |
| [dispose](../../com.aspose.html.net/requestmessage/dispose/)() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |

### See Also

* package [com.aspose.html.net](../../com.aspose.html.net/)
* package [Aspose.HTML](../../)
