functions.xml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
  4. <section id="uri_db.functions" xmlns:xi="http://www.w3.org/2001/XInclude">
  5. <sectioninfo>
  6. </sectioninfo>
  7. <title>Functions</title>
  8. <section id="check_to">
  9. <title>
  10. <function>check_to()</function>
  11. </title>
  12. <para>
  13. Check To username against URI table or digest credentials.
  14. </para>
  15. <example>
  16. <title><function>check_to</function> usage</title>
  17. <programlisting>
  18. ...
  19. if (check_to()) {
  20. ...
  21. };
  22. ...
  23. </programlisting>
  24. </example>
  25. </section>
  26. <section id="check_from">
  27. <title>
  28. <function>check_from()</function>
  29. </title>
  30. <para>
  31. Check From username against URI table or digest credentials.
  32. </para>
  33. <example>
  34. <title><function>check_from</function> usage</title>
  35. <programlisting>
  36. ...
  37. if (check_from()) {
  38. ...
  39. };
  40. ...
  41. </programlisting>
  42. </example>
  43. </section>
  44. <section id="does_uri_exist">
  45. <title>
  46. <function>does_uri_exist()</function>
  47. </title>
  48. <para>
  49. Check if username in the request URI belongs to an existing user.
  50. </para>
  51. <example>
  52. <title><function>does_uri_exist</function> usage</title>
  53. <programlisting>
  54. ...
  55. if (does_uri_exist()) {
  56. ...
  57. };
  58. ...
  59. </programlisting>
  60. </example>
  61. </section>
  62. </section>