code: private void prepareRequestBody() throws IOException {
  
      if (bodyByteArray != null) {
        setByteArrayBody();
      } else if (bodyString != null) {
        setStringBody();
      } else if (bodyObject != null) {
        setTypedBody();
      }
    }
docs: Prepares the request body - setting the body, charset and
  content length by body type
  
  @throws IOException