Function to transform a response data based on href provided.
typedef TransformData = Uint8List Function(String href, Uint8List data);