akka/akka-http
Clarify directive complete reponse body rendering
Ouverte
#1 303 ouverte le 25 juil. 2017
1 - triagedhelp wantedt:docst:http:server:dsl
Métriques du dépôt
- Stars
- (1 311 étoiles)
- Métriques de merge PR
- (Merge moyen 1j 10h) (2 PRs mergées en 30 j)
Description
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"