code: public Request setContent(InputStream stream, ContentType contentType) {
          entity = new InputStreamEntity(stream, contentType);
          return this;
      }
docs: set request content from input stream with given content type
  @param stream    : teh input stream to be used as http content
  @param contentType   : type of content set in header
  @return modified Request object with http content entity set