reqtgt.xml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <refentry id="refreqtarget">
  2. <refmeta>
  3. <refentrytitle>ne_get_request_target</refentrytitle>
  4. <manvolnum>3</manvolnum>
  5. </refmeta>
  6. <refnamediv>
  7. <refname id="ne_get_request_target">ne_get_request_target</refname>
  8. <refpurpose>retrieve request target</refpurpose>
  9. </refnamediv>
  10. <refsynopsisdiv>
  11. <funcsynopsis>
  12. <funcsynopsisinfo>#include &lt;ne_request.h&gt;</funcsynopsisinfo>
  13. <funcprototype>
  14. <funcdef>const ne_uri *<function>ne_get_request_target</function></funcdef>
  15. <paramdef>ne_request *<parameter>req</parameter></paramdef>
  16. </funcprototype>
  17. </funcsynopsis>
  18. </refsynopsisdiv>
  19. <refsect1>
  20. <title>Description</title>
  21. <para>The <function>ne_get_request_target</function> returns the
  22. request target URI as a pointer to an
  23. <structname>ne_uri</structname> object. The "target resource" of a
  24. request is defined per <ulink
  25. url="https://www.rfc-editor.org/rfc/rfc9110.html#section-7.1">Section
  26. 7.1 of RFC 9110</ulink> and is derived from the parameters used to
  27. create the request with <xref linkend="ne_request_create"/> and
  28. the parameters used to create the session with <xref
  29. linkend="ne_session_create"/>.</para>
  30. </refsect1>
  31. <refsect1>
  32. <title>Return value</title>
  33. <para>The <function>ne_get_request_target</function> function
  34. returns a <structname>ne_uri</structname>, or &null; if it was not
  35. possible to create the target URI. The latter can only occur if
  36. the path used to create the request object was not a valid URI
  37. path. Note that the <structfield>path</structfield> field of the
  38. returned object can be the empty string if the
  39. <literal>authority-form</literal> of the URI is used.</para>
  40. </refsect1>
  41. <refsect1>
  42. <title>History</title>
  43. <para><function>ne_get_request_target</function> is available in
  44. &neon; 0.34.0 and later.</para>
  45. </refsect1>
  46. <refsect1>
  47. <title>See also</title>
  48. <para><xref linkend="ne_request_create"/>, <xref
  49. linkend="ne_session_create"/>.</para>
  50. </refsect1>
  51. </refentry>