akka/akka-http

Clarify directive complete reponse body rendering

開放

#1,303 建立於 2017年7月25日

 (4 則留言) (0 個反應) (0 位負責人)Scala (598 個分叉)batch import
1 - triagedhelp wantedt:docst:http:server:dsl

倉庫指標

星標
 (1,311 顆星)
PR 合併指標
 (平均合併 1天 10小時) (30 天內合併 2 個 PR)

描述

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"

貢獻者指南