Package org.takes.rq

Class RequestOf

  • All Implemented Interfaces:
    Body, Head, Request

    public final class RequestOf
    extends Object
    implements Request
    This Request implementation provides a way to build a request with custom Scalar head and body values.

    The class is immutable and thread-safe.

    Since:
    2.0
    • Constructor Detail

      • RequestOf

        public RequestOf​(Iterable<String> head,
                         InputStream body)
        Ctor.
        Parameters:
        head - Iterable head value
        body - InputStream body value
      • RequestOf

        public RequestOf​(Head head,
                         Body body)
        Ctor.
        Parameters:
        head - Head value
        body - Body value