akka/akka-http

Clarify directive complete reponse body rendering

Aberta

#1.303 aberto em 25 de jul. de 2017

 (4 comentários) (0 reação) (0 responsável)Scala (598 forks)batch import
1 - triagedhelp wantedt:docst:http:server:dsl

Métricas do repositório

Stars
 (1.311 estrelas)
Métricas de merge de PR
 (Mesclagem média 1d 10h) (2 fundiu PRs em 30d)

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"

Guia do colaborador