akka/akka-http

Clarify directive complete reponse body rendering

Offen

#1.303 geöffnet am 25.07.2017

 (4 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Scala (598 Forks)batch import
1 - triagedhelp wantedt:docst:http:server:dsl

Repository-Metriken

Stars
 (1.311 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 1T 10h) (2 gemergte PRs in 30 T)

Beschreibung

Issue by matheuslima Thursday Aug 11, 2016 at 00:18 GMT Originally opened as https://github.com/akka/akka/issues/21177


Actually, if we call complete passing only StatusCode as parameter, the reponse will have the StatusCode.toString as body. This is not documented. For example:

complete(StatusCodes.OK)

will render a response with status code 200 and body "OK"

Contributor Guide