http
http copied to clipboard
🌐 Abstraction for HTTP request, response and session. Provides careful data sanitization and utility for URL and cookies manipulation.
Just minor thing. There is mismatch between `$key` param definition in these two. `IRequest` has `string` type, but `Request` has correct `string|string[]` type.
- bug fix (hopefully fix for https://forum.nette.org/cs/35361-cannot-configure-read-and-close-for-already-started-session) - BC break? no Session class throws exception if session is started and option read_and_close is set. https://github.com/nette/http/blob/0679e7c51a76a2db1da0804b99c83eb3152d84b3/src/Http/Session.php#L401-L404 SessionExtension breaks compatibility with other...
- new feature - BC break? no Just improvement.
- new feature - BC break? yes Domain `https://google.com./abcd` (host ending with dot) is valid URL, but it is same as `https://google.com/abcd`.
- new feature - BC break? no Just add method removeQueryParameter() for better evidence-based practice with URL manipulation when I want check if value is scalar or I want remove...
- bug fix: yes - BC break: no ------------------ This happened to me recently: I forgot to mark form item with file upload as mandatory, so users were able to...
- new feature - BC break? yes In the case of obtaining a service for an Http Request in CLI mode, it does not make sense for the call method...
- new feature? Security enhancement by leting users choose to change nette-samesite cookie name #182 Allow users to change cookie name is a security enhancement because sometimes there is no...
- new feature - BC break? no Sometimes I want to get real pure domain always without `www.` prefix. For example in the case of URL `https://www.nette.org`: - method `getDomain(3)`...
- BC break: no - doc PR: not needed Moved headers configuration from initialize() method of DIC to Response service setup. Useful for applications with multiple http layer implementations (we...