Contents

path(_:)

Modifies a parse strategy to parse a URL’s path component in accordance with the provided behavior.

Declaration

func path(_ strategy: URL.ParseStrategy.ComponentParseStrategy<String> = .optional) -> URL.ParseStrategy

Parameters

  • strategy:

    A strategy for parsing the path component.

Return Value

A modified URL.ParseStrategy that incorporates the specified behavior.

See Also

Customizing strategy behavior