package com.example import akka.actor._ object Tutorial_02_Tell_Pattern extends App { println("Step 1: Create an actory system") val system = ActorSystem("DonutStoreActorSystem") val donutInActor = system.actorOf(Props[DonutInActor], n
Akka-http的客户端Api应该是以HttpRequest操作为主轴的网上消息交换模式编程工具.我们知道:Akka-http是搭建在Akka-stream之上的.所以,Akka-http在客户端构建与服务器的连接通道也可以用Akka-stream的Flow来表示.这个Flow可以通过调用Http.outgoingConnection来获取: /** * Creates a [[akka.stream.scaladsl.Flow]] representing a prospective HTT