## ReadAsStream() {#readasstream}

Serialize the HTTP content and return a stream that represents the content.

```csharp
public Stream ReadAsStream()
```

### Return Value

Serialized stream that represents the content

### See Also

* class [Content](../)
* namespace [Aspose.Html.Net](../../../aspose.html.net/)
* assembly [Aspose.HTML](../../../)

---

## ReadAsStream(*CancellationToken*) {#readasstream_1}

Serialize the HTTP content and return a stream that represents the content.

```csharp
public Stream ReadAsStream(CancellationToken cancellationToken)
```

| Parameter | Type | Description |
| --- | --- | --- |
| cancellationToken | CancellationToken | The cancellation token. |

### Return Value

Serialized stream that represents the content

### See Also

* class [Content](../)
* namespace [Aspose.Html.Net](../../../aspose.html.net/)
* assembly [Aspose.HTML](../../../)
