Explanation: header() returns the Header object.
Explanation: header() returns the Header object.
Explanation: set_header() is used internally to assign headers.
Explanation: session() returns the Session object.
Explanation: set_cookie() assigns the Cookie object.
Explanation: The constructor accepts a URL string.
Explanation: set_path() assigns path variables.
Explanation: All properties are static, meaning shared across instances.
Explanation: The class enforces access through getter methods.
Explanation: Response class is responsible for HTTP response creation and sending.
Explanation: json() creates response object without sending it.