Netty HTTP2 示例-响应式编程-013

   ApiHug × {Postman|Swagger|Api...} = 快↑ 准√ 省↓

  1. GitHub - apihug/apihug.com: All abou the Apihug   
  2. apihug.com: 有爱,有温度,有质量,有信任
  3. ApiHug - API design Copilot - IntelliJ IDEs Plugin | Marketplace

  The Next Generation API Development Platform - ApiHug 

Netty 实现 HTTP/2 server & client, Netty Http Server 例子open in new window。

如命http2 是新一代的http, HTTP version 2 或者 HTTP/2open in new window, 当然 Http 3.0 还在路上open in new window。

HTTP/2 目前还是被接受和实现最多的版本, 她和先前版本不一样的地方在双向通道 multiplexing 和 服务器端推送。

HTTP/2 通讯通过一组字节流 也就是 frames (像Websocket frame?), 一个流有多个frames

HTTP/2 还必须配置 SSL

这里教程探索下 Netty 如何处理和交换:

  1. HEADERSopen in new window
  2. DATAopen in new window
  3. SETTINGSopen in new window

    +---------------+
    |Pad Length? (8)|
    +-+-------------+-----------------------------------------------+
    |E|                 Stream Dependency? (31)                     |
    +-+-------------+-----------------------------------------------+
    |  Weight? (8)  |
    +-+-------------+-----------------------------------------------+
    |                   Header Block Fragment (*)                 ...
    +---------------------------------------------------------------+
    |                           Padding (*)                       ...
    +---------------------------------------------------------------+

    +---------------+
    |Pad Length? (8)|
    +---------------+-----------------------------------------------+
    |                            Data (*)                         ...
    +---------------------------------------------------------------+
    |                           Padding (*)                       ...
    +---------------------------------------------------------------+

#SSL

创建 SslContext APN negotiation for HTTP/2 o

你可能感兴趣的:(ApiHug,intellij-idea,java,spring,spring,boot)