re79.html 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <title>&lt;%GLibUriFlags&gt;: </title>
  6. <meta name="generator" content="DocBook XSL Stylesheets V1.79.2">
  7. <link rel="home" href="index.html" title="">
  8. <link rel="up" href="ch01.html" title="GLib">
  9. <link rel="prev" href="re78.html" title="&lt;%GLibUriError&gt;">
  10. <link rel="next" href="re80.html" title="&lt;%GLibUriHideFlags&gt;">
  11. <meta name="generator" content="GTK-Doc V1.33.1 (XML mode)">
  12. <link rel="stylesheet" href="style.css" type="text/css">
  13. </head>
  14. <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
  15. <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
  16. <td width="100%" align="left" class="shortcuts"></td>
  17. <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
  18. <td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
  19. <td><a accesskey="p" href="re78.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
  20. <td><a accesskey="n" href="re80.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
  21. </tr></table>
  22. <div class="refentry">
  23. <a name="id-1.1.80"></a><div class="titlepage"></div>
  24. <div class="refnamediv">
  25. <h2>&lt;%GLibUriFlags&gt;</h2>
  26. <p>&lt;%GLibUriFlags&gt;</p>
  27. </div>
  28. <div class="refsect1">
  29. <a name="id-1.1.80.2"></a><h2>Description</h2>
  30. <p>Flags that describe a URI.
  31. </p>
  32. <p>When parsing a URI, if you need to choose different flags based on
  33. the type of URI, you can use <code class="function">g_uri_peek_scheme()</code> on the URI string
  34. to check the scheme first, and use that to decide what flags to
  35. parse it with.</p>
  36. </div>
  37. <div class="refsect1">
  38. <a name="id-1.1.80.3"></a><h2>Members</h2>
  39. <div class="refsect2">
  40. <a name="id-1.1.80.3.2"></a><h3>none</h3>
  41. <p class="remark"><em><span class="remark">alias <code class="code">G_URI_FLAGS_NONE</code></span></em></p>
  42. <p>No flags set.</p>
  43. </div>
  44. <div class="refsect2">
  45. <a name="id-1.1.80.3.3"></a><h3>parse-relaxed</h3>
  46. <p class="remark"><em><span class="remark">alias <code class="code">G_URI_FLAGS_PARSE_RELAXED</code></span></em></p>
  47. <p>Parse the URI more relaxedly than the
  48. [RFC 3986](https://tools.ietf.org/html/rfc3986) grammar specifies,
  49. fixing up or ignoring common mistakes in URIs coming from external
  50. sources. This is also needed for some obscure URI schemes where <code class="code">;</code>
  51. separates the host from the path. Don’t use this flag unless you need to.</p>
  52. </div>
  53. <div class="refsect2">
  54. <a name="id-1.1.80.3.4"></a><h3>has-password</h3>
  55. <p class="remark"><em><span class="remark">alias <code class="code">G_URI_FLAGS_HAS_PASSWORD</code></span></em></p>
  56. <p>The userinfo field may contain a password,
  57. which will be separated from the username by <code class="code">:</code>.</p>
  58. </div>
  59. <div class="refsect2">
  60. <a name="id-1.1.80.3.5"></a><h3>has-auth-params</h3>
  61. <p class="remark"><em><span class="remark">alias <code class="code">G_URI_FLAGS_HAS_AUTH_PARAMS</code></span></em></p>
  62. <p>The userinfo may contain additional
  63. authentication-related parameters, which will be separated from
  64. the username and/or password by <code class="code">;</code>.</p>
  65. </div>
  66. <div class="refsect2">
  67. <a name="id-1.1.80.3.6"></a><h3>encoded</h3>
  68. <p class="remark"><em><span class="remark">alias <code class="code">G_URI_FLAGS_ENCODED</code></span></em></p>
  69. <p>When parsing a URI, this indicates that <code class="code">%</code>-encoded
  70. characters in the userinfo, path, query, and fragment fields
  71. should not be decoded. (And likewise the host field if
  72. <code class="constant">G_URI_FLAGS_NON_DNS</code> is also set.) When building a URI, it indicates
  73. that you have already <code class="code">%</code>-encoded the components, and so <span class="type">GUri</span>
  74. should not do any encoding itself.</p>
  75. </div>
  76. <div class="refsect2">
  77. <a name="id-1.1.80.3.7"></a><h3>non-dns</h3>
  78. <p class="remark"><em><span class="remark">alias <code class="code">G_URI_FLAGS_NON_DNS</code></span></em></p>
  79. <p>The host component should not be assumed to be a
  80. DNS hostname or IP address (for example, for <code class="code">smb</code> URIs with NetBIOS
  81. hostnames).</p>
  82. </div>
  83. <div class="refsect2">
  84. <a name="id-1.1.80.3.8"></a><h3>encoded-query</h3>
  85. <p class="remark"><em><span class="remark">alias <code class="code">G_URI_FLAGS_ENCODED_QUERY</code></span></em></p>
  86. <p>Same as <code class="constant">G_URI_FLAGS_ENCODED</code>, for the query
  87. field only.</p>
  88. </div>
  89. <div class="refsect2">
  90. <a name="id-1.1.80.3.9"></a><h3>encoded-path</h3>
  91. <p class="remark"><em><span class="remark">alias <code class="code">G_URI_FLAGS_ENCODED_PATH</code></span></em></p>
  92. <p>Same as <code class="constant">G_URI_FLAGS_ENCODED</code>, for the path only.</p>
  93. </div>
  94. <div class="refsect2">
  95. <a name="id-1.1.80.3.10"></a><h3>encoded-fragment</h3>
  96. <p class="remark"><em><span class="remark">alias <code class="code">G_URI_FLAGS_ENCODED_FRAGMENT</code></span></em></p>
  97. <p>Same as <code class="constant">G_URI_FLAGS_ENCODED</code>, for the
  98. fragment only.</p>
  99. </div>
  100. <div class="refsect2">
  101. <a name="id-1.1.80.3.11"></a><h3>scheme-normalize</h3>
  102. <p class="remark"><em><span class="remark">alias <code class="code">G_URI_FLAGS_SCHEME_NORMALIZE</code></span></em></p>
  103. <p>A scheme-based normalization will be applied.
  104. For example, when parsing an HTTP URI changing omitted path to <code class="code">/</code> and
  105. omitted port to <code class="code">80</code>; and when building a URI, changing empty path to <code class="code">/</code>
  106. and default port <code class="code">80</code>). This only supports a subset of known schemes. (Since: 2.68)</p>
  107. </div>
  108. </div>
  109. </div>
  110. <div class="footer">
  111. <hr>Generated by GTK-Doc V1.33.1</div>
  112. </body>
  113. </html>