Log in
Model

Response

Magento\MediaStorage\Model\File\Storage\Response

What it does

This class handles HTTP responses for serving static media files from storage.

Developers use it when they need to send files (like images or CSS) directly to the browser, automatically handling file transfers with proper headers.

It's particularly useful in custom media storage implementations where files aren't served directly from the web server.

Public Methods

  • sendResponse()
  • setFilePath()