-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy pathUriPart.cs
More file actions
52 lines (45 loc) · 1.62 KB
/
Copy pathUriPart.cs
File metadata and controls
52 lines (45 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
namespace net.openstack.Core
{
/// <summary>
/// Represents a specific part of a URI.
/// </summary>
/// <preliminary/>
public enum UriPart
{
/// <summary>
/// Represents a non-specific URI part, where all characters except unreserved characters are percent-encoded.
/// </summary>
Any,
/// <summary>
/// Represents a non-specific URL part, where all characters except unreserved characters and the characters <c>(</c>, <c>)</c>, <c>!</c>, and <c>*</c> are percent-encoded.
/// </summary>
/// <remarks>
/// When used with <see cref="UriUtility.UriEncode(string, UriPart)"/>, this URI part matches the behavior of <see cref="M:System.Web.HttpUtility.UrlEncode(string)"/>, with the exception of space characters (this method percent-encodes space characters as <c>%20</c>).
/// </remarks>
AnyUrl,
/// <summary>
/// The host part of a URI.
/// </summary>
Host,
/// <summary>
/// The complete path of a URI, formed from path segments separated by slashes (<c>/</c> characters).
/// </summary>
Path,
/// <summary>
/// A single segment of a URI path.
/// </summary>
PathSegment,
/// <summary>
/// The complete query string of a URI.
/// </summary>
Query,
/// <summary>
/// The value assigned to a query parameter within the query string of a URI.
/// </summary>
QueryValue,
/// <summary>
/// The fragment part of a URI.
/// </summary>
Fragment,
}
}