Package com.castlabs.android.network

# Interface ResponseModifier

public interface ResponseModifier
Implementation of this interface can intercept `Response`s and modify them before the response is processed further. This can be use to implement custom DRM backends where the response needs to be further processed before the data can be passed to the CDM.

Note that header parameters are exposed and can be changed directly on the response object.

Since:
  4.2.0

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Response`
  `onResponse(Response response)`
  Called with the current response object.

- ## Method Details

  - ### onResponse

    @NonNull Response onResponse(@NonNull Response response)
    Called with the current response object. Note: Do not return null here. If no modification should be applied, return the received response
    Parameters:
      `response` - The response object
    Returns:
      The potentially modified response instance. Do not return null here!