- Add method addFile() to let user download a file.
- Add method getHeaders() for testability.
- Update Makefile for phpmd installation.
- Update README.
- Test on PHP 7.3.
- Update Response::redirect to return self to allow chaining and allow user to directly call send().
- Rewrite Response::redirect to use Response-class and not header().
- Update config/di to support injection of $di.
- Update Makefile.
- Update composer.json.
- Enhance unit tests.
- Add $di config file config/di/response.php.
- Fix stylecode.
- Added unit testing.
- Adapt Anax Lite.
- Prepare to clean up waist and aline with release of Anax Lite v1.0.
- Fix year in LICENSE.txt.
- Ignore composer.lock.
- Update Makefile.
- Update to require PHP 7.2 in composer.json.
- Fix phpunit.
- Return self from most methods, partly to ease unittesting in controllers.
- Refactor sendJson() to use send().
- Allow sending null to setStatsuCode() and ignore it.
- Check for headers already sent ignores when running in cli mode.
- Add getStatusCode() for test.
- Add status codes 400, 405, 501, 418.
- Ignore phpmd exit expression in Response::redirect().
- Do exit after redirect().
- Add utility methods through ResponseUtility.
- Do not send headers if they are already sent, silently fail on send() and sendJson().
- Remove warning from composer.json, duplicate PHP version.
- Added
JSON_UNESCAPED_SLASHES
to SendJson().
- Remove
JSON_PRESERVE_ZERO_FRACTION
from SendJson().
- Enable to use callable to set the body.
- Corrections after test with anax-lite.
- Extracted from anax to be its own module.