akka/akka-http

Allow matching multiple query parameters in Java API

Aberta

#605 aberto em 1 de dez. de 2016

 (4 comentários) (0 reação) (0 responsável)Scala (598 forks)batch import
1 - triageddiscusshelp wantedt:java

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

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.

Guia do colaborador