Package org.takes.rs
Class RsWithType.Html
- java.lang.Object
-
- org.takes.rs.RsWrap
-
- org.takes.rs.RsWithType.Html
-
- Enclosing class:
- RsWithType
public static final class RsWithType.Html extends RsWrap
Response decorator, with content type text/html.The class is immutable and thread-safe.
- Since:
- 0.30
-
-
Constructor Summary
Constructors Constructor Description Html(Response res)
Constructs aHTML
that will add text/html as the content type header to the response.Html(Response res, Charset charset)
Constructs aHTML
that will add text/html as the content type header to the response using the specified charset as charset parameter value.
-
-
-
Constructor Detail
-
Html
public Html(Response res)
Constructs aHTML
that will add text/html as the content type header to the response.- Parameters:
res
- Original response
-
-