Class ContentType

java.lang.Object
com.azure.core.http.ContentType

public final class ContentType extends Object

This class provides constants for commonly used Content-Type header values in HTTP requests and responses.

This class is useful when you need to specify the Content-Type header in an HTTP request or check the Content-Type header in an HTTP response.

  • Field Details

    • APPLICATION_JSON

      public static final String APPLICATION_JSON
      the default JSON Content-Type header.
      See Also:
    • APPLICATION_OCTET_STREAM

      public static final String APPLICATION_OCTET_STREAM
      the default binary Content-Type header.
      See Also:
    • APPLICATION_X_WWW_FORM_URLENCODED

      public static final String APPLICATION_X_WWW_FORM_URLENCODED
      The default form data Content-Type header.
      See Also: