niniwzw/http2
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
This is a work-in-progress HTTP/2 implementation for Go. It will eventually live in the Go standard library and won't require any changes to your code to use. It will just be automatic. Status: * The server support is pretty good. A few things are missing but are being worked on. * The client work has just started but shares a lot of code is coming along much quicker. Docs are at https://godoc.org/github.com/niniwzw/http2 Demo test server at https://http2.golang.org/ Help & bug reports welcome. 这个项目的主要目的是打造一类通用的服务器编程框架 很多时候我们都在寻找这样的一种服务器框架,它只是 tcp的一个简单封装,我们有完全的控制力。同时,性能 非常高,并且编程非常容易。似乎web编程就是其中的一种。 一个链接代表一种功能,架构非常明晰。web编程能够成为 主流也提醒了我们这样的一种观点,软件不是功能越全越好, 关系越复杂越好。功能之间的独立性非常重要,通过独立 功能组合成一个复杂的软件,往往会比互相关联的功能 组合成的软件要复杂很多。但是,http有致命的缺点, 特别是在处理长连接,服务器需要推送数据的情况下。 http2刚好弥补了这个缺点,提供了数据广播非常需要的: 心跳机制 以及 流量控制。http2 给了我非常重要的启示。 特别是在架构设计方面,每个程序员都应该仔细揣摩这个 程序,他会让你受益匪浅。