akka/akka-http

DOCS: make sure to document needed implicits

Open

#278 opened on 2016年9月12日

GitHub で見る
 (3 comments) (1 reaction) (0 assignees)Scala (598 forks)batch import
1 - triagedhelp wantedt:docs

Repository metrics

Stars
 (1,311 stars)
PR merge metrics
 (平均マージ 1d 10h) (30d で 2 merged PRs)

説明

Issue by rkuhn Friday Jul 17, 2015 at 07:13 GMT Originally opened as https://github.com/akka/akka/issues/18021


From the mailing list:

I got hit by this stuff today when moving some tests from one package to another disabled responseAs[String] completely (earlier, it worked in some endpoints, but not in others). The answer is to import akka.http.scaladsl.unmarshalling.Unmarshaller._ in tests, which mixes in PredefinedFromEntityUnmarshallers, which contain an unmarshaller to string. Second, it is necessary to import akka.http.scaladsl.marshalling.Marshaller._ in the file where the route is defined, so that string responses are marshalled correctly (if you don't do it, your response bodies unmarshalled in tests will contain an extra set of double quotes).

コントリビューターガイド