Closed forceedge01 closed 4 years ago
As per psr7 the request method is immutable. So the headers and body need to be set on instantiation for it to work.
new Request($method, self::$baseUrl . $endpoint, $headers, Psr7\stream_for($body));
Released in v1.1
As per psr7 the request method is immutable. So the headers and body need to be set on instantiation for it to work.
new Request($method, self::$baseUrl . $endpoint, $headers, Psr7\stream_for($body));