HTTP 1.1.0 released
2020-12-28
1321次浏览
Version 1.1.0 of yiisoft/http package was released.
ContentDispositionHeader was introduced. It helps building Content-Disposition header that complies to RFC-6266 and works in majority of modern browsers:
$name = \Yiisoft\Http\ContentDispositionHeader::name();
$value = \Yiisoft\Http\ContentDispositionHeader::value(
\Yiisoft\Http\ContentDispositionHeader::INLINE,
'avatar.png'
);
$value = \Yiisoft\Http\ContentDispositionHeader::inline('document.pdf');
$value = \Yiisoft\Http\ContentDispositionHeader::attachment('document.pdf');
Also, Method::ANY is now deprecated in favor of Method::ALL.
More details could be found in the package README.
新闻归档
热门标签
- yii3
- 扩展
- 发布
- yii2
- debug
- auth client
- view
- bootstrap
- release
- html
- redis
- apidoc
- Yii 2.0
- Yii 1.1
- mongodb
- mailer
- extensions
- twig
- gii
- queue
- runner
- http 客户端
- console
- validation
- cache
- sphinx
- widget
- hydrator
- translator
- symfonymailer
- db
- http
- log
- error handler
- config
- swiftmailer
- 图书
- imagine
- assets
- i18n
- IDE
- swagger
- elasticsearch
- router
- csrf
- smarty
- definitions
- logging
- fastroute
- user