Object HttpRequestBody.Companion

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static HttpRequestBody ofJson(Object value) Returns a new HttpRequestBody containing the given value serialized to a JSON string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • ofJson

         final static HttpRequestBody ofJson(Object value)

        Returns a new HttpRequestBody containing the given value serialized to a JSON string.

        The content type will be set to application/json and will use UTF-8 encoding.