Builds a domain pattern based on a route segment constraint.
Optional
Partial route segment constraint for domain matching.
The capture-group name to assign to the parameter (if any).
A string representing the domain pattern or undefined.
Builds a domain pattern based on a route segment constraint.