aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-http-stream.h
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-04-06 09:15:53 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-04-06 09:15:53 +0800
commit6a46aea720ddc40d6c1c1155e34e4c3e90b9e7df (patch)
treedff67b1779794ee3e99aef094df4eac3f2a147cc /camel/camel-http-stream.h
parentc2c91ffed71c7f50735281e5db316f474628d124 (diff)
downloadgsoc2013-evolution-6a46aea720ddc40d6c1c1155e34e4c3e90b9e7df.tar.gz
gsoc2013-evolution-6a46aea720ddc40d6c1c1155e34e4c3e90b9e7df.tar.zst
gsoc2013-evolution-6a46aea720ddc40d6c1c1155e34e4c3e90b9e7df.zip
Don't get the statuscode here anymore. (http_method_invoke): Use a
2002-04-05 Jeffrey Stedfast <fejj@ximian.com> * camel-http-stream.c (http_get_headers): Don't get the statuscode here anymore. (http_method_invoke): Use a User-Agent header and do basic proxy authentication. (stream_read): Handle redirects. (camel_http_stream_set_user_agent): New function to allow client to set the User-Agent string. (camel_http_stream_set_proxy): New function for setting the proxy server. (camel_http_stream_set_proxy_authrealm): New function for setting the proxy auth realm. (camel_http_stream_set_proxy_authpass): New function for setting the proxy auth password. svn path=/trunk/; revision=16367
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