This is a implementation of a websocket server and client for the spray.io web toolkit. It is currently a work in progress, but it has a pretty comprehensive test suite that exercises a whole bunch of functionality. The server/client can:
Spray是基于Akka之上的轻量级Scala库,提供对客户端与服务端REST/HTTP的支持。在使用上,大概可以将其视为Java平台下的Jersey;虽然它们的特性并不尽相同。从scala语言来看,它提供的Future与Promise可以较好地支持并发;而Akka的Actor模型无疑助推了Spray的并发处理性能。根据Spray官方网站的描述,它拥有如下的特性:
完全异步的,无阻塞的APIs
基于Actor与Future
高性能
轻量级
模块化
可测试性
Work under SSL (all the tests are done both in the clear and under SSL)
Handle fragmented messages (the server will buffer up a complete message before passing it to your frameHandler
Cut off messages which are too big (whether single-messages or fragmented)
Kill the connection when there's a protocol violation according to the websocket spec (probably doesn't account for everything at the moment)
Automatically respond to pings with pongs
Match up outgoing Pings and incoming Pongs to find round trip times
Automatically ping every client according to the autoPingInterval, using the pingGenerator to generate the body of each ping
Pass almost the entire Autobahn Test Suite
client-report.html and sever-report.html contain the Autobahn test reports for both the server and the client. The only tests currently failing are unicode strictness tests, which means the server isn't killing connections in the case of malformed unicode as strictly as it should.
相关推荐
java8 看不到源码喷雾播种机应用程序 这个小应用程序旨在让人们快速编写 Web 服务/应用程序,而无需在样板项目设置上花费大量时间。 我觉得有必要公开这项工作的主要原因是,这个小型应用程序中使用的许多框架在 ...
DTN路由,SprayAndFocus的Java实现
Java:Oracle JDK 1.7.0 Scala:2.11.4 Sbt ,建立在 + 框架之上。依赖关系历史0.1 - 初始版本。安装 $ docker pull williamyeh/spray-httpserver用法基本用法: $ docker run williamyeh/spray-httpserver暴露 ...
java -jar target/scala-2.11/curator-x-discovery-spray-scala-assembly-1.0.jar 您应该在控制台上看到: [main-EventThread] INFO org.apache.curator.framework.state.ConnectionStateManager - State change:...
官方版本,亲测可用
官方版本,亲测可用
官方版本,亲测可用
官方版本,亲测可用
欢迎来到rest scala / spray / akka / slick / mysql示例 在研究scala / spray /...安装了带有Maven的Java 就是这样 配置 在mysql服务器上设置用户和数据库 在资源中编辑db.conf以配置数据库连接 添加新的REST API 以
官方版本,亲测可用
官方版本,亲测可用
官方版本,亲测可用
官方版本,亲测可用
java开发短信验证Akka SMPP 服务器 使用 akka-streams 在 Akka 中实现 SMPP 3.4。 目前这是非常简单的。 常量已被大部分定义。 所有 PDU 都存在案例类。 从 TCP 解析 PDU 并将它们序列化是可行的。 使用 sbt 安装 ...
芬兰人开发的一个专门用于DTN网络仿真的软件,用Java语言写的,该模拟器本身能支持First Contact, Epidemic, Spray and Wait, Direct delivery, PRoPHET and MaxProp这几种路由。 具体的安装方法里面有一个README....
支持Java 8 +,Scala 2.11,Scala 2.12和Scala 2.13。 无依赖关系。 Play框架,Play JSON,Json4s Native,Json4s Jackson,Circe,uPickle,Spray JSON和Argonaut的可选帮助器。 :warning: 寻找维护者。 这个lib...
Spray doesn't have friendly API for Java, the spray.japi package provides a few of Helpers and Factories to help Java developers to construct spray entities easily. Validation provides ...
Scala、Akka、Spray 和 Camel/ActiveMQ 的微服务示例 . Lagom 框架用于编写基于 Java 的微服务的示例用法 分析 . 作为 Node.js 微服务的公共分析。 无需系统管理员经验! :chart_increasing: . :bar_chart: 无服务器...
支持Java 8 +,Scala 2.12和Scala 2.13。 无依赖关系。 Play框架,Play JSON,Json4s Native,Json4s Jackson,Circe,uPickle,Spray JSON和Argonaut的可选帮助器。用法详细文档位于。 JWT Scala分为几个子项目,...
spray-json面向 Scala 和FasterXML/jackson 、 gson以及您可能在 Scala 中使用的许多其他 Java 库。 json-binders主要特点是: 没有运行时反射的编译时代码生成 流式/迭代底层API 干净/可互操作的 JSON 格式 无模式...