Contents

host(_:)

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

Declaration

func host(_ strategy: URL.ParseStrategy.ComponentParseStrategy<String> = .required) -> URL.ParseStrategy

Parameters

  • strategy:

    A strategy for parsing the host component.

Return Value

A modified URL.ParseStrategy that incorporates the specified behavior.

See Also

Customizing strategy behavior