akka/akka-http

Allow matching multiple query parameters in Java API

開放

#605 建立於 2016年12月1日

 (4 則留言) (0 個反應) (0 位負責人)Scala (598 個分叉)batch import
1 - triageddiscusshelp wantedt:java

倉庫指標

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

描述

Currently, if there is a call with multiple query parameters, there are two ways to code it:

Nesting parameter directives:

parameter("param1_name",  param1 ->
    parameter("param2_name", param2 -> method(param1, param2))

, which quickly gets of hand in terms of size and readability, or using parameterMap/parameterList and checking for their availability manually. One has an unfeasible amount of ceremony, and the other results in error-prone code. Some more concise API needs to be added.

貢獻者指南