
## StreamContent class

Represents content based on a stream.



**Inheritance:** [`StreamContent`](/html/python-net/aspose.html.net/streamcontent) → 
[`Content`](/html/python-net/aspose.html.net/content)



The StreamContent type exposes the following members:

### Constructors
| Constructor | Description |
| :- | :- |
| [__init__](/html/python-net/aspose.html.net/streamcontent/__init__/#io.RawIOBase) | Initializes a new instance of the [`StreamContent`](/html/python-net/aspose.html.net/streamcontent) class. |


### Properties
| Property | Description |
| :- | :- |
| [headers](/html/python-net/aspose.html.net/streamcontent/headers) | Gets the HTTP content headers. |


### Methods
| Method | Description |
| :- | :- |
| [read_as_stream](/html/python-net/aspose.html.net/streamcontent/read_as_stream/#) | Serialize the HTTP content and return a stream that represents the content. |
| [read_as_byte_array](/html/python-net/aspose.html.net/streamcontent/read_as_byte_array/#) | Serialize the HTTP content and return a byte array that represents the content. |
| [read_as_string](/html/python-net/aspose.html.net/streamcontent/read_as_string/#) | Serialize the HTTP content and return a string that represents the content. |



### See Also
* module [`aspose.html.net`](..)
* class [`Content`](/html/python-net/aspose.html.net/content)
* class [`StreamContent`](/html/python-net/aspose.html.net/streamcontent)
