http2:fasthttp的HTTP2实现

时间:2024-05-28 22:33:43
【文件属性】:

文件名称:http2:fasthttp的HTTP2实现

文件大小:57KB

文件格式:ZIP

更新时间:2024-05-28 22:33:43

golang high-performance http2 Go

HTTP2 http2是fasthttp的HTTP / 2协议的。 例子 package main import ( "fmt" "log" "github.com/dgrr/http2" "github.com/valyala/fasthttp" ) func main () { cert , priv , err := GenerateTestCertificate ( "localhost:8080" ) if err != nil { log . Fatalln ( err ) } s := & fasthttp. Server { Handler : requestHandler , Name : "http2 test" , } err = s . AppendCertEmbed ( cert , priv ) if err != ni


【文件预览】:
http2-master
----.gitignore(73B)
----go.mod(268B)
----utils.go(3KB)
----strings.go(832B)
----windowupdate.go(1KB)
----adaptor.go(1KB)
----fasthttp.go(811B)
----continuation.go(2KB)
----headerfield.go(3KB)
----http2.go(717B)
----ping.go(1KB)
----rststream.go(1KB)
----settings.go(7KB)
----SECURITY.md(7KB)
----server.go(12KB)
----priority.go(2KB)
----hpack.go(14KB)
----LICENSE(11KB)
----frame_test.go(1KB)
----go.sum(3KB)
----examples()
--------client()
--------autocert()
--------proxy()
--------simple()
----README.md(848B)
----demo()
--------main.go(4KB)
----utils_test.go(776B)
----data.go(2KB)
----hpack_test.go(18KB)
----frame.go(7KB)
----huffman_test.go(6KB)
----pushpromise.go(1KB)
----client.go(12KB)
----errors.go(2KB)
----client_test.go(958B)
----huffman.go(5KB)
----goaway.go(2KB)
----headers.go(3KB)

网友评论