<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY version SYSTEM "version.xml">
]>
<refentry id="cutter-SoupCutter">
<refmeta>
<refentrytitle role="top_of_page" id="cutter-SoupCutter.top_of_page">SoupCutter</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>
  CUTTER Library
</refmiscinfo>
</refmeta>
<refnamediv>
<refname>SoupCutter</refname>
<refpurpose>HTTP supported Cutter with libsoup.</refpurpose>
</refnamediv>

<refsynopsisdiv id="cutter-SoupCutter.synopsis" role="synopsis">
<title role="synopsis.title">Synopsis</title>

<synopsis>#define             <link linkend="SOUPCUTTER-ENABLED:CAPS">SOUPCUTTER_ENABLED</link>
</synopsis>
</refsynopsisdiv>

<refsect1 id="cutter-SoupCutter.description" role="desc">
<title role="desc.title">Description</title>
<para>
SoupCutter adds many useful HTTP related features based
on libsoup to Cutter. If you want to write tests for
HTTP, it's good idea that you consider SoupCutter to be
used too.
</para>
<para>
It's easy to use SoupCutter. You just include
&lt;soupcuttter.h&gt; instead of &lt;cutter.h&gt;
or &lt;gcutter.h&gt; and use soupcutter-pixbuf.pc instead
of cutter.pc or gcutter.pc:
</para>
<para>
test-xxx.c:
<informalexample><programlisting>
-#include &lt;cutter.h&gt;
+#include &lt;soupcutter.h&gt;
</programlisting></informalexample>
</para>
<para>
configure.ac:
<informalexample><programlisting>
-AC_CHECK_CUTTER
+AC_CHECK_SOUPCUTTER
</programlisting></informalexample>
</para>
<para>
Makefile.am:
<informalexample><programlisting>
-XXX_CFLAGS = $(CUTTER_CFLAGS)
-XXX_LIBS = $(CUTTER_LIBS)
+XXX_CFLAGS = $(SOUPCUTTER_CFLAGS)
+XXX_LIBS = $(SOUPCUTTER_LIBS)
</programlisting></informalexample>
</para>
</refsect1>
<refsect1 id="cutter-SoupCutter.details" role="details">
<title role="details.title">Details</title>
<refsect2 id="SOUPCUTTER-ENABLED:CAPS" role="macro" condition="since:1.0.8">
<title>SOUPCUTTER_ENABLED</title>
<indexterm zone="SOUPCUTTER-ENABLED:CAPS" role="1.0.8"><primary>SOUPCUTTER_ENABLED</primary></indexterm>
<programlisting>#define SOUPCUTTER_ENABLED 1
</programlisting>
<para>
Defined when SoupCutter is enabled.
</para><para role="since">Since 1.0.8</para></refsect2>

</refsect1>
<refsect1 id="cutter-SoupCutter.see-also">
<title>See Also</title>
<link
           linkend="cutter-Assertions-for-HTTP-client-and-server">
           Assertions for HTTP client/server based on libsoup</link>
</refsect1>

</refentry>
