Log in
Interface

ConverterInterface

Magento\Analytics\Model\Connector\Http\ConverterInterface

What it does

This interface defines a contract for converting HTTP request and response body data between different formats (like JSON or XML) in the Analytics module.

Developers implement this interface to create custom converters that can serialize PHP arrays to string format for HTTP requests and deserialize response strings back to arrays, while also providing content type information for proper HTTP headers.

Public Methods

  • fromBody()
  • toBody()
  • getContentTypeHeader()
  • getContentMediaType()