userAgent(for:)
Returns the appropriate user-agent string for a given URL.
Declaration
func userAgent(for URL: URL!) -> String!Parameters
- URL:
The URL that you need the user-agent string for.
Return Value
The user-agent string for a given URL. The user-agent string is used by websites to identify the client browser.