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