forceedge01 / behat-api-spec

Generate existing API spec for automated coverage and stop regression
MIT License
2 stars 0 forks source link

Update createRequest to add headers and body on instantiation #14

Closed forceedge01 closed 4 years ago

forceedge01 commented 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));

forceedge01 commented 4 years ago

Released in v1.1