code: public Request setContent(String text, ContentType contentType) {
          entity = new StringEntity(text, contentType);
          return this;
      }
docs: set request content from input text string with given content type
  @param text  : text to be sent as http content
  @param contentType   : type of content set in header
  @return  : Request Object with content type header and conetnt entity value set