## CamelHttpStream CamelHttpStream |

## Synopsis

    struct              CamelHttpStream;
    enum                CamelHttpMethod;
    CamelStream *       camel_http_stream_new               (CamelHttpMethod method,
                                                             struct _CamelSession *session,
                                                             CamelURL *url);
    void                camel_http_stream_set_user_agent    (CamelHttpStream *http_stream,
                                                             const char *user_agent);
    void                camel_http_stream_set_proxy         (CamelHttpStream *http_stream,
                                                             const char *proxy_url);
    void                camel_http_stream_set_proxy_authrealm
                                                            (CamelHttpStream *http_stream,
                                                             const char *proxy_authrealm);
    void                camel_http_stream_set_proxy_authpass
                                                            (CamelHttpStream *http_stream,
                                                             const char *proxy_authpass);
    CamelContentType *  camel_http_stream_get_content_type  (CamelHttpStream *http_stream);

## Description

## Details

### struct CamelHttpStream

    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;
    };

### enum CamelHttpMethod

    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;

### camel_http_stream_new ()

    CamelStream *       camel_http_stream_new               (CamelHttpMethod method,
                                                             struct _CamelSession *session,
                                                             CamelURL *url);

`method` : | HTTP method
`session` : | active session
`url` : | URL to act upon
Returns : | a http stream

### camel_http_stream_set_user_agent ()

    void                camel_http_stream_set_user_agent    (CamelHttpStream *http_stream,
                                                             const char *user_agent);

`http_stream` : |
`user_agent` : |

### camel_http_stream_set_proxy ()

    void                camel_http_stream_set_proxy         (CamelHttpStream *http_stream,
                                                             const char *proxy_url);

`http_stream` : |
`proxy_url` : |

### camel_http_stream_set_proxy_authrealm ()

    void                camel_http_stream_set_proxy_authrealm
                                                            (CamelHttpStream *http_stream,
                                                             const char *proxy_authrealm);

`http_stream` : |
`proxy_authrealm` : |

### camel_http_stream_set_proxy_authpass ()

    void                camel_http_stream_set_proxy_authpass
                                                            (CamelHttpStream *http_stream,
                                                             const char *proxy_authpass);

`http_stream` : |
`proxy_authpass` : |

### camel_http_stream_get_content_type ()

    CamelContentType *  camel_http_stream_get_content_type  (CamelHttpStream *http_stream);

`http_stream` : |
Returns : |