Responses

HTTP is all about requests and responses. Drupal represents the responses it sends as Response objects. Drupal’s responses are Symfony Response objects. Symfony’s documentation also applies to Drupal.

Responses overview

Overview of responses in Drupal.

CacheableResponseInterface

CacheableResponseInterface is an interface for responses that can expose cacheability metadata. (Cache contexts, tags and max-age.)