本文共 3089 字,大约阅读时间需要 10 分钟。
输入/help获取更多指令
Just a short one today folks. I wanted to indicate some exciting stuff that’s happened in the past few hours, and get you excited for how the web is shaping up.
今天只是一小部分人。 我想指出过去几个小时发生的令人兴奋的事情,并使您对网络的发展方式感到兴奋。
A few months ago I wrote a post about how iOS 9 was going to have HTTP/2 support, which you can . Since then, I started work on my new ambitious project: a pure-Python HTTP/2 stack that would work equally well as a client or a server. You can find this project .
几个月前,我写了一篇有关iOS 9如何具有HTTP / 2支持的文章,您可以 。 从那时起,我开始着手进行新的雄心勃勃的项目:一个纯Python HTTP / 2堆栈,该堆栈可以像客户端或服务器一样良好地工作。 您可以找到该项目。
For the moment the project ships with a basic example server, written for Twisted. This server does nothing much: if you hit the base path, it echoes back a JSON dictionary of the headers from the request. Very simple.
目前,该项目附带一个为Twisted编写的基本示例服务器。 该服务器无济于事:如果您击中了基本路径,它将回显请求中标头的JSON字典。 很简单。
Today, iOS 9 came out for real, and I decided I’d play around with it a bit. Using a custom version of Twisted containing , I made a few tiny changes to the Twisted example server to get it up and running with TLS and a self-signed certificate.
今天,iOS 9真正面世了,我决定自己尝试一下。 使用包含的Twisted的自定义版本,我对Twisted示例服务器进行了一些小改动,以使其启动并使用TLS和自签名证书运行。
The result is below: a series of pictures of modern web browsers speaking HTTP/2 to a HTTP/2 server written entirely in Python. There’s no C extensions here: just Python. Along with each image is the list of settings that HTTP/2 client explicitly sends.
结果如下:一系列现代Web浏览器的图片,这些图片在完全用Python编写的HTTP / 2和HTTP / 2服务器之间进行了HTTP / 2编程。 这里没有C扩展:只有Python。 与每个图像一起的是HTTP / 2客户端显式发送的设置列表。
The next few months of work on hyper-h2 should be really interesting. Come help me out! In the meantime, if you want to try it out yourself, the code is available : don’t forget to apply the Twisted patch!
关于hyper-h2的接下来的几个月的工作应该真的很有趣。 快来帮帮我! 同时,如果您想自己尝试一下,可以找到代码:不要忘记应用Twisted补丁!
Settings:
设定:
SETTINGS_HEADER_TABLE_SIZE
: 4096SETTINGS_ENABLE_PUSH
: 0 (this is sad: no server push for mobile Safari)SETTINGS_MAX_CONCURRENT_STREAMS
: 100SETTINGS_INITIAL_WINDOW_SIZE
: 65535SETTINGS_HEADER_TABLE_SIZE
:4096 SETTINGS_ENABLE_PUSH
:0(这很可惜:没有用于移动Safari的服务器推送) SETTINGS_MAX_CONCURRENT_STREAMS
:100 SETTINGS_INITIAL_WINDOW_SIZE
:65535 Settings:
设定:
SETTINGS_HEADER_TABLE_SIZE
: 4096SETTINGS_ENABLE_PUSH
: 0 (No push for desktop either? Double sadness!)SETTINGS_MAX_CONCURRENT_STREAMS
: 100SETTINGS_INITIAL_WINDOW_SIZE
: 65535SETTINGS_HEADER_TABLE_SIZE
:4096 SETTINGS_ENABLE_PUSH
:0(也不推动桌面使用?两次悲伤!) SETTINGS_MAX_CONCURRENT_STREAMS
:100 SETTINGS_INITIAL_WINDOW_SIZE
:65535 Settings:
设定:
SETTINGS_MAX_CONCURRENT_STREAMS
: 1000SETTINGS_INITIAL_WINDOW_SIZE
: 6291456SETTINGS_MAX_CONCURRENT_STREAMS
:1000 SETTINGS_INITIAL_WINDOW_SIZE
:6291456 SETTINGS_INITIAL_WINDOW_SIZE
: 131072SETTINGS_MAX_FRAME_SIZE
: 16384SETTINGS_INITIAL_WINDOW_SIZE
:131072 SETTINGS_MAX_FRAME_SIZE
:16384 翻译自:
输入/help获取更多指令
转载地址:http://mvqwd.baihongyu.com/