Package org.takes.rs

Class RsEmpty

  • All Implemented Interfaces:
    Body, Head, Response

    public final class RsEmpty
    extends Object
    implements Response
    Empty response.

    The class is immutable and thread-safe.

    Since:
    0.1
    • Constructor Detail

      • RsEmpty

        public RsEmpty()
    • Method Detail

      • head

        public Iterable<String> head()
        Description copied from interface: Head
        All lines above the body.
        Specified by:
        head in interface Head
        Returns:
        List of lines
      • body

        public InputStream body()
        Description copied from interface: Body
        Body.
        Specified by:
        body in interface Body
        Returns:
        Stream with body