akka/akka-http

Clarify directive complete reponse body rendering

Aperta

#1303 aperta il 25 lug 2017

 (4 commenti) (0 reazioni) (0 assegnatari)Scala (598 fork)batch import
1 - triagedhelp wantedt:docst:http:server:dsl

Metriche repository

Star
 (1311 stelle)
Metriche merge PR
 (Merge medio 1g 10h) (2 PR mergiate in 30 g)

Descrizione

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"

Guida contributor