Class TkConsumes

  • All Implemented Interfaces:
    Take

    public final class TkConsumes
    extends TkWrap
    Take that acts on request with specified "Content-Type" HTTP headers only.

    The class is immutable and thread-safe.

    Since:
    1.0
    • Constructor Detail

      • TkConsumes

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