Contents

port(_:)

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

Declaration

func port(_ strategy: URL.ParseStrategy.ComponentParseStrategy<Int> = .optional) -> URL.ParseStrategy

Parameters

  • strategy:

    A strategy for parsing the port component.

Return Value

A modified URL.ParseStrategy that incorporates the specified behavior.

See Also

Customizing strategy behavior