Resource Response
Constructs a resource response provided by the input stream.
Note: The MIME type should not include character encoding. For example a single value like the "text/html; charset=utf-8"
is not supported, use just
"text/html"
as a mime type. This method defaults to "utf-8" charset, if you wish to use different charset, use ResourceResponse instead.
Parameters
The input stream with the resource data.
The MIME type of the resource, for example "text/html"
.
Constructs a resource response provided by the input stream.
Note: The MIME type should not include character encoding. For example a single value like the "text/html; charset=utf-8"
is not supported, use just
"text/html"
as a mime type and specify the charset via ResourceResponse.
Use ResourceResponse for content that has no character encoding (such as image resources).
Parameters
The input stream with the resource data.
The MIME type of the resource, for example "text/html"
.
The character encoding of the resource, for example "utf-8"
.
Constructs a resource response provided by the data provider.
Note: The MIME type should not include character encoding. For example a single value like the "text/html; charset=utf-8"
is not supported, use just
"text/html"
as a mime type. This method defaults to "utf-8" charset, if you wish to use different charset, use ResourceResponse instead.
Parameters
The data provider with the resource data.
The MIME type of the resource, for example "text/html"
.
Constructs a resource response provided by the data provider.
Note: The MIME type should not include character encoding. For example a single value like the "text/html; charset=utf-8"
is not supported, use just
"text/html"
as a mime type and specify the charset via ResourceResponse.
Use ResourceResponse for content that has no character encoding (such as image resources).
Parameters
The data provider with the resource data.
The MIME type of the resource, for example "text/html"
.
The character encoding of the resource, for example "utf-8"
.