0
您好我想使用completeWith在我的测试scala项目中使用actor每个请求模式,但我无法从喷雾中获取此指令的参考。我试着用完整的指令,并认为这是地方磁铁将在我想要的方式响应,但这:CompleteWith指令在喷雾路由
pathPrefix("search") {
path("book"/"getAvailable") {
get {
respondWithMediaType(`application/json`) {
complete(instanceOf[Seq[Book]]) { completeFunction =>
不要工作。你知道在阿卡的completeWith这样的喷涂工作中有什么指令吗?