Package org.takes.tk

Class TkWithHeaders

  • All Implemented Interfaces:
    Take

    public final class TkWithHeaders
    extends TkWrap
    Take that headers.

    This take wraps all responses of another take, adding headers to them, through RsWithHeaders.

    The class is immutable and thread-safe.

    Since:
    0.1
    • Constructor Detail

      • TkWithHeaders

        public TkWithHeaders​(Take take,
                             String... headers)
        Ctor.
        Parameters:
        take - Original
        headers - Headers
      • TkWithHeaders

        public TkWithHeaders​(Take take,
                             Collection<String> headers)
        Ctor.
        Parameters:
        take - Original
        headers - Headers