Join Slack
Powered by
Hi. I'm observing that the first segment in `URLBu...
# ktor
f
Felix
01/12/2024, 2:05 PM
Hi. I'm observing that the first segment in
URLBuilder.pathSegments
is always an empty string. Is this a well-known behaviour? Is there a rationale for it?
a
Aleksei Tirman [JB]
01/17/2024, 12:15 PM
Yes. The rationale is to be able to get the path by joining segments with
/
. The empty string represents a leading or a trailing slash.
5
Views
Open in Slack
Previous
Next