When using a saloon request, all the properties beginning with an "@" are removed from the response. It happens when the Response is built as those properties are already not there when dumping the psrResponse body from the response constructor.
EDIT: more specifically, the properties already not there when doing the following in a custom response
public function __construct(ResponseInterface $psrResponse, PendingRequest $pendingRequest, RequestInterface $psrRequest, ?Throwable $senderException = null)
{
dump($psrResponse->getBody()->getContents());
parent::__construct($psrResponse, $pendingRequest, $psrRequest, $senderException);
}
Hello. When using Insomnia or the Laravel Http client, I get the following response from an api :
When using a saloon request, all the properties beginning with an "@" are removed from the response. It happens when the Response is built as those properties are already not there when dumping the psrResponse body from the response constructor.
EDIT: more specifically, the properties already not there when doing the following in a custom response