Phoenix 1.4.0 首个 RC 版本已发布,新版本将支持 Cowboy 2 ,并引入 Phoenix.Socket.Transport
。
具体改进内容如下:
[ChannelTest] Respect user's configured ExUnit
:assert_receive_timeout
for macro assertions[Controller] Support partial file downloads with
:offset
and:length
options tosend_download/3
[Controller] Add additional security headers to
put_secure_browser_headers
(x-content-type-options
,x-download-options
, andx-permitted-cross-domain-policies
)[Controller] Add
put_router_url/2
to override the default URL generation pulled from endpoint configuration[Endpoint] Add
Cowboy2Adapter
for HTTP2 support with cowboy2[Endpoint] The
socket/3
macro now accepts direct configuration about websockets and longpoll[Endpoint] Support MFA function in
:check_origin
config for custom origin checking[Endpoint] Add new
:phoenix_error_render
instrumentation callback[Logger] Add whitelist support to
filter_parameters
logger configuration, via new:keep
tuple format[Phoenix] Add
Phoenix.json_library/0
and replacePoison
withJason
for JSON encoding in new projects[Router] Display list of available routes on debugger 404 error page
[Router] Raise on duplicate plugs in
pipe_through
scopes[Presence] Add
Presence.get_by_key
to fetch presences for specific user[Socket] Add new
phoenix_socket_connect
instrumentation[Logger] Log calls to user socket connect
Phoenix 是一个函数式编程语言 Elixir 的 Web 开发框架。
源码下载: