Skip to content

Aliases & Clean ups

Latest

Choose a tag to compare

@michaelthedev michaelthedev released this 30 Aug 08:22
· 1 commit to main since this release
bfba5aa

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 🎟: getBody is now getRequestBody so 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() and timeout().

So, that's your PR. All done and dusted, ready to make your work smoother and faster. Happy coding! πŸ˜ŠπŸŽ‰

What's Changed

Full Changelog: v0.4.2...v0.4.3