[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[e468571] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[c6b192c] | 7 | <!ENTITY uhttpmock-download-http "https://tecnocode.co.uk/downloads/uhttpmock/uhttpmock-&uhttpmock-version;.tar.xz">
|
---|
[e468571] | 8 | <!ENTITY uhttpmock-download-ftp " ">
|
---|
[643f1a5f] | 9 | <!ENTITY uhttpmock-md5sum "214226c73bbe9cd62ba987ce717dfc1e">
|
---|
[4f696d27] | 10 | <!ENTITY uhttpmock-size "48 KB">
|
---|
[643f1a5f] | 11 | <!ENTITY uhttpmock-buildsize "1.1 MB">
|
---|
[35054401] | 12 | <!ENTITY uhttpmock-time "less than 0.1 SBU (with tests)">
|
---|
[e468571] | 13 | ]>
|
---|
| 14 |
|
---|
[51dfb3e] | 15 | <sect1 id="uhttpmock" xreflabel="uhttpmock-&uhttpmock-version;">
|
---|
[e468571] | 16 | <?dbhtml filename="uhttpmock.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>uhttpmock-&uhttpmock-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="uhttpmock">
|
---|
| 22 | <primary sortas="a-uhttpmock">uhttpmock</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to uhttpmock</title>
|
---|
| 27 |
|
---|
| 28 | <para>
|
---|
| 29 | The <application>uhttpmock</application> package contains a library
|
---|
| 30 | for mocking web service APIs which use HTTP or HTTPS.
|
---|
| 31 | </para>
|
---|
| 32 |
|
---|
[fc09938] | 33 | &lfs122_checked;
|
---|
[e468571] | 34 |
|
---|
| 35 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 36 | <itemizedlist spacing="compact">
|
---|
| 37 | <listitem>
|
---|
| 38 | <para>
|
---|
| 39 | Download (HTTP): <ulink url="&uhttpmock-download-http;"/>
|
---|
| 40 | </para>
|
---|
| 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>
|
---|
| 44 | Download (FTP): <ulink url="&uhttpmock-download-ftp;"/>
|
---|
| 45 | </para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>
|
---|
| 49 | Download MD5 sum: &uhttpmock-md5sum;
|
---|
| 50 | </para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>
|
---|
| 54 | Download size: &uhttpmock-size;
|
---|
| 55 | </para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>
|
---|
| 59 | Estimated disk space required: &uhttpmock-buildsize;
|
---|
| 60 | </para>
|
---|
| 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>
|
---|
| 64 | Estimated build time: &uhttpmock-time;
|
---|
| 65 | </para>
|
---|
| 66 | </listitem>
|
---|
| 67 | </itemizedlist>
|
---|
| 68 |
|
---|
| 69 | <bridgehead renderas="sect3">uhttpmock Dependencies</bridgehead>
|
---|
| 70 |
|
---|
| 71 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 72 | <para role="required">
|
---|
[4f696d27] | 73 | <xref linkend="libsoup3"/>
|
---|
[e468571] | 74 | </para>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 77 | <para role="recommended">
|
---|
[c0bc0a9] | 78 | &gobject-introspection; and
|
---|
[e468571] | 79 | <xref linkend="vala"/>
|
---|
| 80 | </para>
|
---|
[8558044] | 81 |
|
---|
[e468571] | 82 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 83 | <para role="optional">
|
---|
| 84 | <xref linkend="gtk-doc"/>
|
---|
| 85 | </para>
|
---|
| 86 |
|
---|
| 87 | </sect2>
|
---|
| 88 |
|
---|
| 89 | <sect2 role="installation">
|
---|
| 90 | <title>Installation of uhttpmock</title>
|
---|
| 91 |
|
---|
| 92 | <para>
|
---|
| 93 | Install <application>uhttpmock</application> by running the following
|
---|
| 94 | commands:
|
---|
| 95 | </para>
|
---|
| 96 |
|
---|
[4f696d27] | 97 | <screen><userinput>mkdir build &&
|
---|
| 98 | cd build &&
|
---|
| 99 |
|
---|
[643f1a5f] | 100 | meson setup .. \
|
---|
| 101 | --prefix=/usr \
|
---|
| 102 | --buildtype=release \
|
---|
| 103 | -D gtk_doc=false &&
|
---|
[4f696d27] | 104 | ninja</userinput></screen>
|
---|
[e468571] | 105 |
|
---|
| 106 | <para>
|
---|
[4f696d27] | 107 | To test the results, issue: <command>ninja test</command>.
|
---|
[e468571] | 108 | </para>
|
---|
| 109 |
|
---|
| 110 | <para>
|
---|
| 111 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 112 | </para>
|
---|
| 113 |
|
---|
[4f696d27] | 114 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
[e468571] | 115 |
|
---|
| 116 | </sect2>
|
---|
| 117 |
|
---|
| 118 | <sect2 role="commands">
|
---|
| 119 | <title>Command Explanations</title>
|
---|
| 120 |
|
---|
| 121 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[4f696d27] | 122 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
[e468571] | 123 |
|
---|
| 124 | </sect2>
|
---|
| 125 |
|
---|
| 126 | <sect2 role="content">
|
---|
| 127 | <title>Contents</title>
|
---|
| 128 |
|
---|
| 129 | <segmentedlist>
|
---|
| 130 | <segtitle>Installed Programs</segtitle>
|
---|
| 131 | <segtitle>Installed Libraries</segtitle>
|
---|
| 132 | <segtitle>Installed Directories</segtitle>
|
---|
| 133 |
|
---|
| 134 | <seglistitem>
|
---|
| 135 | <seg>
|
---|
| 136 | None
|
---|
| 137 | </seg>
|
---|
| 138 | <seg>
|
---|
[4f696d27] | 139 | libuhttpmock-1.0.so
|
---|
[e468571] | 140 | </seg>
|
---|
| 141 | <seg>
|
---|
[4f696d27] | 142 | /usr/include/libuhttpmock-1.0 and
|
---|
| 143 | /usr/share/gtk-doc/html/libuhttpmock-1.0
|
---|
[e468571] | 144 | </seg>
|
---|
| 145 | </seglistitem>
|
---|
| 146 | </segmentedlist>
|
---|
| 147 |
|
---|
| 148 | <variablelist>
|
---|
| 149 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 150 | <?dbfo list-presentation="list"?>
|
---|
| 151 | <?dbhtml list-presentation="table"?>
|
---|
| 152 |
|
---|
[4f696d27] | 153 | <varlistentry id="libuhttpmock-1.0">
|
---|
| 154 | <term><filename class="libraryfile">libuhttpmock-1.0.so</filename></term>
|
---|
[e468571] | 155 | <listitem>
|
---|
| 156 | <para>
|
---|
[4c24eb0a] | 157 | contains the <application>uhttpmock</application> API functions
|
---|
[e468571] | 158 | </para>
|
---|
[4f696d27] | 159 | <indexterm zone="uhttpmock libuhttpmock-1.0">
|
---|
| 160 | <primary sortas="c-libuhttpmock-1.0">libuhttpmock-1.0.so</primary>
|
---|
[e468571] | 161 | </indexterm>
|
---|
| 162 | </listitem>
|
---|
| 163 | </varlistentry>
|
---|
| 164 |
|
---|
| 165 | </variablelist>
|
---|
| 166 |
|
---|
| 167 | </sect2>
|
---|
| 168 |
|
---|
| 169 | </sect1>
|
---|