akka-http API へのリクエストで次のヘッダーを送信します: "Content-type": "application/json"
, "Accept": "application/json"
, "AppId": "some_id"
.
akka-http ルートで "AppId" カスタム ヘッダーを取得するにはどうすればよいですか?
(get & parameters("id")) { (id) =>
complete {
val appId = ?? // I want to get custom header here.
}
}
ありがとう。