extract code from ScalaActionsComposition.md
Merge pull request #1052 from XuefengWu/extrac-code-doc-scala-http-2

extract code from ScalaActionsComposition.md