【问题标题】:Connect to external HTTP server from Netty从 Netty 连接到外部 HTTP 服务器
【发布时间】:2012-08-03 13:24:20
【问题描述】:

我需要一些帮助来理解如何编写 HTTP 路由器,它将 HTTP 标头识别为路由条件。我找到了链接https://github.com/cgbystrom/netty-tools/blob/master/src/main/java/se/cgbystrom/netty/http/router/RouterHandler.java,它似乎自己做路由。但是现在还不清楚,该怎么做

  • 连接到另一个 HTTP 服务器
  • 发送 HTTP 请求
  • 等待 HTTP 响应
  • 将 HTTP 响应转发给客户端

谁能给我一些解释?

【问题讨论】:

    标签: http nio netty router


    【解决方案1】:

    http://static.netty.io/3.5/xref/org/jboss/netty/example/proxy/package-summary.html

    Netty中代理服务器的例子,基本就是我想要的

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-09-25
      • 2013-05-07
      • 1970-01-01
      • 1970-01-01
      • 2017-08-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多