aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-http-stream.h
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-http-stream.h')
-rw-r--r--camel/camel-http-stream.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/camel/camel-http-stream.h b/camel/camel-http-stream.h
index 98a470104c..40733662ef 100644
--- a/camel/camel-http-stream.h
+++ b/camel/camel-http-stream.h
@@ -66,6 +66,15 @@ struct _CamelHttpStream {
CamelService *service;
CamelURL *url;
+ char *user_agent;
+
+ /* proxy info */
+ CamelURL *proxy;
+ char *authrealm;
+ char *authpass;
+
+ int statuscode;
+
CamelStream *raw;
};
@@ -81,6 +90,12 @@ CamelType camel_http_stream_get_type (void);
/* public methods */
CamelStream *camel_http_stream_new (CamelHttpMethod method, CamelService *service, 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);
#ifdef __cplusplus