Interface PayloadEnclosing

    • Method Detail

      • setPayload

        void setPayload​(Payload data)
        Sets payload for the request or the content from the response. If size isn't set, this will attempt to discover it.
        Parameters:
        data - typically InputStream for downloads, or File, byte[], String, InputStream, of ByteSource for uploads.
      • setPayload

        void setPayload​(File data)
      • setPayload

        void setPayload​(byte[] data)
      • setPayload

        void setPayload​(String data)
      • setPayload

        void setPayload​(com.google.common.io.ByteSource data)
      • resetPayload

        void resetPayload​(boolean release)