URL type
Tato sekce je dostupná pouze v angličtině.This block is used to type a variable as a virtual URL data type useful for extracting information from URLs.
During processing, the user can subscribe to different parts of the URL scheme. However, this data type is saved as a string that represents the entire URL. Because of this, it’s called ‘virtual.
For more reference on how URL’s are constructed and parsed in this data type, please see RFC 3986.
A URL is formed of following subcomponents:
- scheme: uri scheme used for accessing resource
- netloc: network location
- path: url path
- params: http parameter (extracted only when the scheme is http or https)
- query: query component
- fragment: page fragment
- hostname: host part of network location in case hostname can’t be extracted is None
- username: specified username or None
Input value
http://user@host.example.com/somewhere/;param=pvalue?query=qvalue&query2=qv2#fragment
Is parsed as:
| Název | Hodnota |
|---|---|
| scheme | http |
| netloc | user@host.example.com |
| path | /somewhere/ |
| params | param=pvalue |
| query | query=qvalue&query2=qv2 |
| fragment | fragment |
| hostname | host.example.com |
| username | user |