code: public void setBody(String body) {
          byte[] bytes = body.getBytes(StandardCharsets.UTF_8);
          this.bodyLength = bytes.length;
          this.body = new ByteArrayInputStream(bytes);
      }
docs: Sets the request body to the contents of a String.
  
  <p>If the contents of the body are large, then it may be more efficient to use an {@link InputStream} instead of
  a String. Using a String requires that the entire body be in memory before sending the request.</p>
  
  @param body a String containing the contents of the body.