Interface HttpRequestBody

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit writeTo(OutputStream outputStream)
      abstract String contentType()
      abstract Long contentLength()
      abstract Boolean repeatable() Determines if a request can be repeated in a meaningful way, for example before doing a retry.
      abstract Unit close() Overridden from AutoCloseable to not have a checked exception in its signature.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • repeatable

         abstract Boolean repeatable()

        Determines if a request can be repeated in a meaningful way, for example before doing a retry.

        The most typical case when a request can't be retried is if the request body is being streamed. In this case the body data isn't available on subsequent attempts.