文件名称:http-server:基于带有GraphQL的Akka HTTP的HTTP服务器
文件大小:43KB
文件格式:ZIP
更新时间:2024-04-24 13:39:11
Scala
Http服务器 具有即插即用组件的Akka HTTP服务器。 基本用法 import com . spinpi . http . directives . AccessLoggingFilter import com . spinpi . http . routes . HttpRoute import com . spinpi . http . HttpServer class PingRoute extends HttpRoute { override def route : Route = path( " ping " ) { complete( " pong " ) } } object ExampleServer extends HttpServer with App { router .addPreFilter[ AccessLoggingFilt