123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title><%GLibUriFlags>: </title>
- <meta name="generator" content="DocBook XSL Stylesheets V1.79.2">
- <link rel="home" href="index.html" title="">
- <link rel="up" href="ch01.html" title="GLib">
- <link rel="prev" href="re78.html" title="<%GLibUriError>">
- <link rel="next" href="re80.html" title="<%GLibUriHideFlags>">
- <meta name="generator" content="GTK-Doc V1.33.1 (XML mode)">
- <link rel="stylesheet" href="style.css" type="text/css">
- </head>
- <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
- <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
- <td width="100%" align="left" class="shortcuts"></td>
- <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
- <td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
- <td><a accesskey="p" href="re78.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
- <td><a accesskey="n" href="re80.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
- </tr></table>
- <div class="refentry">
- <a name="id-1.1.80"></a><div class="titlepage"></div>
- <div class="refnamediv">
- <h2><%GLibUriFlags></h2>
- <p><%GLibUriFlags></p>
- </div>
- <div class="refsect1">
- <a name="id-1.1.80.2"></a><h2>Description</h2>
- <p>Flags that describe a URI.
- </p>
- <p>When parsing a URI, if you need to choose different flags based on
- the type of URI, you can use <code class="function">g_uri_peek_scheme()</code> on the URI string
- to check the scheme first, and use that to decide what flags to
- parse it with.</p>
- </div>
- <div class="refsect1">
- <a name="id-1.1.80.3"></a><h2>Members</h2>
- <div class="refsect2">
- <a name="id-1.1.80.3.2"></a><h3>none</h3>
- <p class="remark"><em><span class="remark">alias <code class="code">G_URI_FLAGS_NONE</code></span></em></p>
- <p>No flags set.</p>
- </div>
- <div class="refsect2">
- <a name="id-1.1.80.3.3"></a><h3>parse-relaxed</h3>
- <p class="remark"><em><span class="remark">alias <code class="code">G_URI_FLAGS_PARSE_RELAXED</code></span></em></p>
- <p>Parse the URI more relaxedly than the
- [RFC 3986](https://tools.ietf.org/html/rfc3986) grammar specifies,
- fixing up or ignoring common mistakes in URIs coming from external
- sources. This is also needed for some obscure URI schemes where <code class="code">;</code>
- separates the host from the path. Don’t use this flag unless you need to.</p>
- </div>
- <div class="refsect2">
- <a name="id-1.1.80.3.4"></a><h3>has-password</h3>
- <p class="remark"><em><span class="remark">alias <code class="code">G_URI_FLAGS_HAS_PASSWORD</code></span></em></p>
- <p>The userinfo field may contain a password,
- which will be separated from the username by <code class="code">:</code>.</p>
- </div>
- <div class="refsect2">
- <a name="id-1.1.80.3.5"></a><h3>has-auth-params</h3>
- <p class="remark"><em><span class="remark">alias <code class="code">G_URI_FLAGS_HAS_AUTH_PARAMS</code></span></em></p>
- <p>The userinfo may contain additional
- authentication-related parameters, which will be separated from
- the username and/or password by <code class="code">;</code>.</p>
- </div>
- <div class="refsect2">
- <a name="id-1.1.80.3.6"></a><h3>encoded</h3>
- <p class="remark"><em><span class="remark">alias <code class="code">G_URI_FLAGS_ENCODED</code></span></em></p>
- <p>When parsing a URI, this indicates that <code class="code">%</code>-encoded
- characters in the userinfo, path, query, and fragment fields
- should not be decoded. (And likewise the host field if
- <code class="constant">G_URI_FLAGS_NON_DNS</code> is also set.) When building a URI, it indicates
- that you have already <code class="code">%</code>-encoded the components, and so <span class="type">GUri</span>
- should not do any encoding itself.</p>
- </div>
- <div class="refsect2">
- <a name="id-1.1.80.3.7"></a><h3>non-dns</h3>
- <p class="remark"><em><span class="remark">alias <code class="code">G_URI_FLAGS_NON_DNS</code></span></em></p>
- <p>The host component should not be assumed to be a
- DNS hostname or IP address (for example, for <code class="code">smb</code> URIs with NetBIOS
- hostnames).</p>
- </div>
- <div class="refsect2">
- <a name="id-1.1.80.3.8"></a><h3>encoded-query</h3>
- <p class="remark"><em><span class="remark">alias <code class="code">G_URI_FLAGS_ENCODED_QUERY</code></span></em></p>
- <p>Same as <code class="constant">G_URI_FLAGS_ENCODED</code>, for the query
- field only.</p>
- </div>
- <div class="refsect2">
- <a name="id-1.1.80.3.9"></a><h3>encoded-path</h3>
- <p class="remark"><em><span class="remark">alias <code class="code">G_URI_FLAGS_ENCODED_PATH</code></span></em></p>
- <p>Same as <code class="constant">G_URI_FLAGS_ENCODED</code>, for the path only.</p>
- </div>
- <div class="refsect2">
- <a name="id-1.1.80.3.10"></a><h3>encoded-fragment</h3>
- <p class="remark"><em><span class="remark">alias <code class="code">G_URI_FLAGS_ENCODED_FRAGMENT</code></span></em></p>
- <p>Same as <code class="constant">G_URI_FLAGS_ENCODED</code>, for the
- fragment only.</p>
- </div>
- <div class="refsect2">
- <a name="id-1.1.80.3.11"></a><h3>scheme-normalize</h3>
- <p class="remark"><em><span class="remark">alias <code class="code">G_URI_FLAGS_SCHEME_NORMALIZE</code></span></em></p>
- <p>A scheme-based normalization will be applied.
- For example, when parsing an HTTP URI changing omitted path to <code class="code">/</code> and
- omitted port to <code class="code">80</code>; and when building a URI, changing empty path to <code class="code">/</code>
- and default port <code class="code">80</code>). This only supports a subset of known schemes. (Since: 2.68)</p>
- </div>
- </div>
- </div>
- <div class="footer">
- <hr>Generated by GTK-Doc V1.33.1</div>
- </body>
- </html>
|