Specifies options for a UriParser.
This enumeration supports a bitwise combination of its member values.
public enum class GenericUriParserOptions
[System.Flags]
public enum GenericUriParserOptions
[<System.Flags>]
type GenericUriParserOptions =
Public Enum GenericUriParserOptions
The parser: requires an authority; converts backslashes into forward slashes; unescapes path dots, forward slashes, and back slashes; and removes trailing dots, empty segments, and dots-only segments.
1The parser allows a registry-based authority.
AllowEmptyAuthority 2The parser allows a URI with no authority.
NoUserInfo 4The scheme does not define a user information part.
NoPort 8The scheme does not define a port.
NoQuery 16The scheme does not define a query part.
NoFragment 32The scheme does not define a fragment part.
DontConvertPathBackslashes 64The parser does not convert back slashes into forward slashes.
DontCompressPath 128The parser does not canonicalize the URI.
DontUnescapePathDotsAndSlashes 256The parser does not unescape path dots, forward slashes, or back slashes.
Idn 512The parser supports Internationalized Domain Name (IDN) parsing (IDN) of host names. Whether IDN is used is dictated by configuration values.
IriParsing 1024The parser supports the parsing rules specified in RFC 3987 for International Resource Identifiers (IRI). Whether IRI is used is dictated by configuration values.
You can combine any of these options to configure a generic URI parser by passing the options as a parameter to the GenericUriParser.GenericUriParser(GenericUriParserOptions) constructor.
The existing System.Uri class has been extended to provide support for International Resource Identifiers (IRI) based on RFC 3987. Users upgrading from .NET Framework 2.0 won't see any behavior change unless they specifically enable IRI. This ensures application compatibility with prior versions of the .NET Framework.
The configuration setting for the System.Configuration.IdnElement is indirectly controlled by the System.Configuration.IriParsingElement configuration setting that controls IRI processing in the System.Uri class. IRI processing must be enabled for IDN processing to be possible. If IRI processing is disabled, then IDN processing will be set to the default setting where the .NET Framework 2.0 behavior is used for compatibility and IDN names are not used.
The Internationalized Domain Name (IDN) attribute only controls IDN processing. All other IRI processing (character normalization, for example) is performed by default.
For more information on IRI support, see the Remarks section for the System.Uri class.
See alsoCollaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this articleWas this page helpful?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4