【文件属性】:
文件名称:finagle-http-thrift-example:Finagle HTTP 和 Thrift Clients \ Servers 示例
文件大小:7KB
文件格式:ZIP
更新时间:2021-06-30 17:02:48
Scala
Finagle HTTP 和 Thrift Clients \ Servers 示例
这是如何编写 Finagle HTTP/Thrift 服务器/客户端的示例。
尝试一下!
要尝试它,您应该通过以下命令运行 HTTP:
$ sbt "run-main com.acme.Example.HttpServer"
然后你应该运行 Thrift Server:
$ sbt "run-main com.acme.Example.ThriftServer"
现在我们准备使用 HTTP 客户端进行一些测试调用:
$ sbt "run-main com.acme.Example.HttpClient"
在 HTTP 客户端你应该得到以下输出:
))) Issuing two requests in parallel:
))) Received result for authorized
【文件预览】:
finagle-http-thrift-example-master
----.gitignore(38B)
----project()
--------plugins.sbt(86B)
--------build.properties(20B)
----src()
--------main()
----README.md(890B)
----build.sbt(282B)