Package org.takes.tk

Class TkWithHeader

  • All Implemented Interfaces:
    Take

    public final class TkWithHeader
    extends TkWrap
    Take with an extra header.

    This take wraps all responses of another take, adding an extra header to them, through RsWithHeader.

    The class is immutable and thread-safe.

    Since:
    0.11
    • Constructor Detail

      • TkWithHeader

        public TkWithHeader​(Take take,
                            String key,
                            String value)
        Ctor.
        Parameters:
        take - Original
        key - Header
        value - Value
      • TkWithHeader

        public TkWithHeader​(Take take,
                            String header)
        Ctor.
        Parameters:
        take - Original
        header - Header