Release Summary π
Say 'bye-bye' to hassle and 'hello' to simplicity as we upgraded a few things:
- **Changes to Http.php:**π
- SetBody is now bilingual π€: It can now understand both Strings and Arrays. If you use an array, it will be promptly turned into JSON!
- Meet the new names in town π:
getBodyis nowgetRequestBodyso it's crystal clear what it's getting. And we have handy shorter granular methods 'body()', 'headers()', and 'status()' as aliases for getting response body, headers, and response code respectively. - Welcoming the rookies π: Say hi to
getResponseHeaders(),getResponseBody(),getResponseCode()- all dedicated to bringing you response headers, body and code respectively. And there's more! Two new methods for managing timeout -getTimeout()andtimeout().
So, that's your PR. All done and dusted, ready to make your work smoother and faster. Happy coding! ππ
What's Changed
- Feat aliases and clean up by @michaelthedev in #4
- fix: invalid types and missing arguments by @michaelthedev in #5
Full Changelog: v0.4.2...v0.4.3