Headers
in package
Represents the headers of an API response.
Attributes
- #[AllowDynamicProperties]
Table of Contents
Methods
- __construct() : mixed
- Headers constructor.
- __toString() : string
- Returns a string representation of the headers.
Methods
__construct()
Headers constructor.
public
__construct(object $response) : mixed
Parameters
- $response : object
-
The response object containing header information.
__toString()
Returns a string representation of the headers.
public
__toString() : string
Return values
string —Human-readable headers list.