<refentry id="camel-CamelHttpStream">
<refmeta>
<refentrytitle role="top_of_page" id="camel-CamelHttpStream.top_of_page">CamelHttpStream</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>CAMEL Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>CamelHttpStream</refname>
<refpurpose></refpurpose>
</refnamediv>

<refsynopsisdiv id="camel-CamelHttpStream.synopsis" role="synopsis">
<title role="synopsis.title">Synopsis</title>

<synopsis>
struct              <link linkend="CamelHttpStream">CamelHttpStream</link>;
enum                <link linkend="CamelHttpMethod">CamelHttpMethod</link>;
<link linkend="CamelStream">CamelStream</link> *       <link linkend="camel-http-stream-new">camel_http_stream_new</link>               (<link linkend="CamelHttpMethod">CamelHttpMethod</link> method,
                                                         <link linkend="struct--CamelSession">struct _CamelSession</link> *session,
                                                         <link linkend="CamelURL">CamelURL</link> *url);
<link linkend="void">void</link>                <link linkend="camel-http-stream-set-user-agent">camel_http_stream_set_user_agent</link>    (<link linkend="CamelHttpStream">CamelHttpStream</link> *http_stream,
                                                         const <link linkend="char">char</link> *user_agent);
<link linkend="void">void</link>                <link linkend="camel-http-stream-set-proxy">camel_http_stream_set_proxy</link>         (<link linkend="CamelHttpStream">CamelHttpStream</link> *http_stream,
                                                         const <link linkend="char">char</link> *proxy_url);
<link linkend="void">void</link>                <link linkend="camel-http-stream-set-proxy-authrealm">camel_http_stream_set_proxy_authrealm</link>
                                                        (<link linkend="CamelHttpStream">CamelHttpStream</link> *http_stream,
                                                         const <link linkend="char">char</link> *proxy_authrealm);
<link linkend="void">void</link>                <link linkend="camel-http-stream-set-proxy-authpass">camel_http_stream_set_proxy_authpass</link>
                                                        (<link linkend="CamelHttpStream">CamelHttpStream</link> *http_stream,
                                                         const <link linkend="char">char</link> *proxy_authpass);
<link linkend="CamelContentType">CamelContentType</link> *  <link linkend="camel-http-stream-get-content-type">camel_http_stream_get_content_type</link>  (<link linkend="CamelHttpStream">CamelHttpStream</link> *http_stream);
</synopsis>
</refsynopsisdiv>









<refsect1 id="camel-CamelHttpStream.description" role="desc">
<title role="desc.title">Description</title>
<para>
</para>
</refsect1>

<refsect1 id="camel-CamelHttpStream.details" role="details">
<title role="details.title">Details</title>
<refsect2 id="CamelHttpStream" role="struct">
<title>struct CamelHttpStream</title>
<indexterm zone="CamelHttpStream"><primary sortas="CamelHttpStream">CamelHttpStream</primary></indexterm><programlisting>struct CamelHttpStream {
	CamelStream parent_object;
	
	CamelMimeParser *parser;
	
	CamelContentType *content_type;
	struct _camel_header_raw *headers;
	
	CamelHttpMethod method;
	struct _CamelSession *session;
	CamelURL *url;
	
	char *user_agent;
	
	/* proxy info */
	CamelURL *proxy;
	char *authrealm;
	char *authpass;
	
	int statuscode;
	
	CamelStream *raw;
	CamelStream *read;
};
</programlisting>
<para>
</para></refsect2>
<refsect2 id="CamelHttpMethod" role="enum">
<title>enum CamelHttpMethod</title>
<indexterm zone="CamelHttpMethod"><primary sortas="CamelHttpMethod">CamelHttpMethod</primary></indexterm><programlisting>typedef enum {
	/*CAMEL_HTTP_METHOD_OPTIONS,*/
	CAMEL_HTTP_METHOD_GET,
	CAMEL_HTTP_METHOD_HEAD
	/*CAMEL_HTTP_METHOD_POST,*/
	/*CAMEL_HTTP_METHOD_PUT,*/
	/*CAMEL_HTTP_METHOD_DELETE,*/
	/*CAMEL_HTTP_METHOD_TRACE,*/
	/*CAMEL_HTTP_METHOD_CONNECT*/
} CamelHttpMethod;
</programlisting>
<para>
</para></refsect2>
<refsect2 id="camel-http-stream-new" role="function">
<title>camel_http_stream_new ()</title>
<indexterm zone="camel-http-stream-new"><primary sortas="camel_http_stream_new">camel_http_stream_new</primary></indexterm><programlisting><link linkend="CamelStream">CamelStream</link> *       camel_http_stream_new               (<link linkend="CamelHttpMethod">CamelHttpMethod</link> method,
                                                         <link linkend="struct--CamelSession">struct _CamelSession</link> *session,
                                                         <link linkend="CamelURL">CamelURL</link> *url);</programlisting>
<para>
</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>method</parameter>&#160;:</term>
<listitem><simpara> HTTP method
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>session</parameter>&#160;:</term>
<listitem><simpara> active session
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>url</parameter>&#160;:</term>
<listitem><simpara> URL to act upon
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> a http stream
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-http-stream-set-user-agent" role="function">
<title>camel_http_stream_set_user_agent ()</title>
<indexterm zone="camel-http-stream-set-user-agent"><primary sortas="camel_http_stream_set_user_agent">camel_http_stream_set_user_agent</primary></indexterm><programlisting><link linkend="void">void</link>                camel_http_stream_set_user_agent    (<link linkend="CamelHttpStream">CamelHttpStream</link> *http_stream,
                                                         const <link linkend="char">char</link> *user_agent);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>http_stream</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>user_agent</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-http-stream-set-proxy" role="function">
<title>camel_http_stream_set_proxy ()</title>
<indexterm zone="camel-http-stream-set-proxy"><primary sortas="camel_http_stream_set_proxy">camel_http_stream_set_proxy</primary></indexterm><programlisting><link linkend="void">void</link>                camel_http_stream_set_proxy         (<link linkend="CamelHttpStream">CamelHttpStream</link> *http_stream,
                                                         const <link linkend="char">char</link> *proxy_url);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>http_stream</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>proxy_url</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-http-stream-set-proxy-authrealm" role="function">
<title>camel_http_stream_set_proxy_authrealm ()</title>
<indexterm zone="camel-http-stream-set-proxy-authrealm"><primary sortas="camel_http_stream_set_proxy_authrealm">camel_http_stream_set_proxy_authrealm</primary></indexterm><programlisting><link linkend="void">void</link>                camel_http_stream_set_proxy_authrealm
                                                        (<link linkend="CamelHttpStream">CamelHttpStream</link> *http_stream,
                                                         const <link linkend="char">char</link> *proxy_authrealm);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>http_stream</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>proxy_authrealm</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-http-stream-set-proxy-authpass" role="function">
<title>camel_http_stream_set_proxy_authpass ()</title>
<indexterm zone="camel-http-stream-set-proxy-authpass"><primary sortas="camel_http_stream_set_proxy_authpass">camel_http_stream_set_proxy_authpass</primary></indexterm><programlisting><link linkend="void">void</link>                camel_http_stream_set_proxy_authpass
                                                        (<link linkend="CamelHttpStream">CamelHttpStream</link> *http_stream,
                                                         const <link linkend="char">char</link> *proxy_authpass);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>http_stream</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>proxy_authpass</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-http-stream-get-content-type" role="function">
<title>camel_http_stream_get_content_type ()</title>
<indexterm zone="camel-http-stream-get-content-type"><primary sortas="camel_http_stream_get_content_type">camel_http_stream_get_content_type</primary></indexterm><programlisting><link linkend="CamelContentType">CamelContentType</link> *  camel_http_stream_get_content_type  (<link linkend="CamelHttpStream">CamelHttpStream</link> *http_stream);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>http_stream</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>




</refentry>
