forEachPart
inline fun forEachPart(traverseOptionals: Boolean = true, block: (EndpointPart<*>) -> Unit)
Content copied to clipboard
Call block on each part of the endpoint, traversing down into optionals if traverseOptionals is true.
Calls for the optional before going into it.
inline fun forEachPart(noinline traverseOptionals: (String) -> Boolean, block: (EndpointPart<*>) -> Unit)
Content copied to clipboard
Call block on each part of the endpoint, traversing down into optionals if traverseOptionals is true for that optional.
Calls for the optional before going into it.