ktorio / ktorio/ktor

API Discussion: Parameters DSL Update

Open
#1,091 1 comment 0 reactions 1 assignee Claimed by @e5l View on GitHub
enhancement
Dominant language
Kotlin
Stars
14.5k
Forks
1.3k
Avg merge
2d 13h
Merged PRs (30d)
49

Description

### Ktor Version

`ktor-http` 1.1.5 and below

### Feedback

Add a `parameters { ... }` builder DSL to replace the less discoverable `Parameters.build { ... }` companion object function in favor of being more consistent with the stdlib.

`sequenceOf(1, 2, 3)`/`listOf(1, 2, 3)` -> `parametersOf("first", "a")`
`sequence { ... }` -> `parameters { ... }`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.