| Camel Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
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 gchar *user_agent); void camel_http_stream_set_proxy (CamelHttpStream *http_stream, const gchar *proxy_url); void camel_http_stream_set_proxy_authrealm (CamelHttpStream *http_stream, const gchar *proxy_authrealm); void camel_http_stream_set_proxy_authpass (CamelHttpStream *http_stream, const gchar *proxy_authpass); CamelContentType * camel_http_stream_get_content_type (CamelHttpStream *http_stream);
struct CamelHttpStream {
CamelStream parent_object;
CamelMimeParser *parser;
CamelContentType *content_type;
struct _camel_header_raw *headers;
CamelHttpMethod method;
struct _CamelSession *session;
CamelURL *url;
gchar *user_agent;
/* proxy info */
CamelURL *proxy;
gchar *authrealm;
gchar *authpass;
gint statuscode;
CamelStream *raw;
CamelStream *read;
};
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;
CamelStream * camel_http_stream_new (CamelHttpMethod method, struct _CamelSession *session, CamelURL *url);
|
HTTP method |
|
active session |
|
URL to act upon |
Returns : |
a http stream |
void camel_http_stream_set_user_agent (CamelHttpStream *http_stream, const gchar *user_agent);
|
|
|
void camel_http_stream_set_proxy (CamelHttpStream *http_stream, const gchar *proxy_url);
|
|
|
void camel_http_stream_set_proxy_authrealm (CamelHttpStream *http_stream, const gchar *proxy_authrealm);
|
|
|
void camel_http_stream_set_proxy_authpass (CamelHttpStream *http_stream, const gchar *proxy_authpass);
|
|
|
CamelContentType * camel_http_stream_get_content_type (CamelHttpStream *http_stream);
|
|
Returns : |