Package org.takes.tk

Class TkWithType

  • All Implemented Interfaces:
    Take

    public final class TkWithType
    extends TkWrap
    Plain text take.

    This take wraps all responses of another take, adding content type to them, through RsWithType.

    The class is immutable and thread-safe.

    Since:
    0.1
    • Constructor Detail

      • TkWithType

        public TkWithType​(Take take,
                          String type)
        Ctor.
        Parameters:
        take - Original take
        type - Content type