akka/akka-http

Allow matching multiple query parameters in Java API

オープン

#605 opened on 2016/12/01

 (4 件のコメント) (0 件のリアクション) (0 人の担当者)Scala (598 件のフォーク)batch import
1 - triageddiscusshelp wantedt:java

Repository metrics

Stars
 (1,311 個のスター)
PR merge metrics
 (平均マージ 1d 10h) (30d で 2 merged PRs)

説明

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.

コントリビューターガイド