如何在我的案例中制作一个实体来限制?

时间:2018-04-24 09:08:28

标签: scala akka-http

如何使用toStrict作为例外子流源无法多次实现

这是我的来源

  val fileUploadRote = {
(post & extractRequestContext & entity(as[String])) { (request, textReq) =>
  extractRequestContext {
    formFieldMultiMap { fields =>
      println("There are " +
        s"form fields ${fields.map(x => x._1 + " -> " + x._2.size).mkString(", ")}")
      var companyId = fields.get("companyId").getOrElse(List.empty)
      var subCompanyId = fields.get("subCompanyId").getOrElse(List.empty)

      ....................//File Upload code
    }
  }
}

}

0 个答案:

没有答案