Hello, World! Hey, noob question: what's the cano...
# ktor
b
Hello, World! Hey, noob question: what's the canonical way of building a url to make a get request using ktor httpClient? I see there's a
URLBuilder
class, as well as a
parametersOf
function they seem helpful but can't seem to find a sample to use them. Basically I have a base url, and I have a few query params that I want to append to it. Here's what I'm doing now, but isn't there a way to not repeat
parameter
?
Copy code
httpClient.get(BASE_URL + "memberships") {
            parameter("current_page", pageIndex)
            parameter("per_page", itemsPerPage)
        }
👀 1