forEachPart

inline fun forEachPart(traverseOptionals: Boolean = true, block: (EndpointPart<*>) -> Unit)

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)

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.