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.

贡献者指南