Interface BinaryRequest


public interface BinaryRequest
Indicates that a class used for request is to be serialised as binary data (e.g. for uploads).
Since:
7.10.0
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    The MIME type header for this request to use as the Content-Type.
    byte[]
    Serialises this request to a byte array.
  • Method Details

    • toByteArray

      byte[] toByteArray()
      Serialises this request to a byte array.
      Returns:
      The binary data for this request.
    • getContentType

      The MIME type header for this request to use as the Content-Type.
      Returns:
      The request MIME type as a string.