Closed kamarton closed 3 years ago
I'd suggest a separate class instead of putting it into a single large helper.
# RFC 2231/5987 Encoding: Character Sets
'2231iso' => ["filename=iso-8859-1''foo-%E4.html",null, null, ['filename' => 'foo-ä.html']],
'2231utf' => ["filename=UTF-8''foo-%c3%a4-%e2%82%ac.html",null, null, ['filename' => 'foo-ä-€.html']],
'2231noc' => ["filename=''foo-%c3%a4-%e2%82%ac.html", null,null, null, \InvalidArgumentException::class],
What about implement in yiisoft/http?
Maybe
@sup-ham how do you plan to use middleware there?
I suggests
Implementing to
HttpHelper
.