Logmanager documentation
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

URL type

Block is used to type variable as an virtual URL data type useful for extracting informations from URLs.

During processing user can subscript to different parts of URL scheme, however this data type is serialized as a string representing URL. Due to this behavior it is called virtual.

For more reference how URL’s are constructed and parsed in this data type please see RFC 3986.

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 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

Example of url parsing

Input value:

http://user@host.example.com/somewhere/;param=pvalue?query=qvalue&query2=qv2#fragment

Is parsed as:

name value
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