Interface IMultipartBody<T>

Type Parameters:
T - The type representing the data.

public interface IMultipartBody<T>
Represents a multipart body with its content type, content length and body data.
Since:
8.5.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the BodyPublisher for the multipart body.
    long
    Gets the content length of the multipart body, if known, or -1 if unknown.
    Gets the Content-Type header value for the multipart body.
  • Method Details

    • contentLength

      long contentLength()
      Gets the content length of the multipart body, if known, or -1 if unknown.
      Returns:
      The content length.
    • contentType

      String contentType()
      Gets the Content-Type header value for the multipart body.
      Returns:
      The Content-Type header value.
    • body

      T body()
      Gets the BodyPublisher for the multipart body.
      Returns:
      The BodyPublisher.