summaryrefslogtreecommitdiff
path: root/libsoup/soup-headers.h
diff options
context:
space:
mode:
authorAlex Graveley <alex@ximian.com>2001-02-15 19:54:05 +0000
committeralex <alex>2001-02-15 19:54:05 +0000
commitb30a3c8ba3684e238bfd061275fba4cebdb27689 (patch)
treec2bfafe02bdc6a3fe2bef9c62cbfe71745595ccd /libsoup/soup-headers.h
parenta1cebf034f5304143bd61e5712cbf2c7a137d69c (diff)
downloadlibsoup-b30a3c8ba3684e238bfd061275fba4cebdb27689.tar.gz
update to return void from the callback. (main): do not requeue existing
2001-02-15 Alex Graveley <alex@ximian.com> * tests/stress-test.c (current_temp_cb): update to return void from the callback. (main): do not requeue existing messages when they have finished, as they will be freed. instead create new SoupMessage objects. * tests/simple-test.c (current_temp_cb): update to return void from the callback. * src/soup-core/soup-serializer.c (soup_serializer_start_element): support creation of the request's SOAPAction header my taking the namespace uri and name of the first element after starting the body tag. * src/soup-core/soup-queue.h: add SOUP_ERROR_HANDLER which will be used by the upcoming handler/interceptor stuff to return an application-level error to the message callback. Make SoupCallbackFn return void. * src/soup-core/soup-queue.c (soup_debug_print_headers): make public. (soup_queue_write_async): attempt to write again if the first write was okay and didn't block. * src/soup-core/soup-uri.c (soup_debug_print_uri): make public. * src/soup-core/soup-message.c (soup_message_issue_callback): message callback now returns void, meaning that soup_queue_message() takes ownership of the message and always frees it after calling the callback (unless it was requeued from within the callback). * src/soup-core/soup-headers.c (soup_headers_parse_request): renamed from soup_parse_request_headers. (soup_headers_parse_response): renamed from soup_parse_response_headers. (soup_headers_parse): renamed from soup_parse_headers.
Diffstat (limited to 'libsoup/soup-headers.h')
-rw-r--r--libsoup/soup-headers.h26
1 files changed, 14 insertions, 12 deletions
diff --git a/libsoup/soup-headers.h b/libsoup/soup-headers.h
index a90c4064..dd94b0ca 100644
--- a/libsoup/soup-headers.h
+++ b/libsoup/soup-headers.h
@@ -3,9 +3,9 @@
* soup-headers.h: Asyncronous Callback-based SOAP Request Queue.
*
* Authors:
- * Alex Graveley (alex@helixcode.com)
+ * Alex Graveley (alex@ximian.com)
*
- * Copyright (C) 2000, Helix Code, Inc.
+ * Copyright (C) 2001, Ximian, Inc.
*/
#ifndef SOUP_HEADERS_H
@@ -13,16 +13,18 @@
#include <glib.h>
-gboolean soup_parse_request_headers (gchar *str,
- gint len,
- GHashTable *dest,
- gchar **req_method,
- gchar **req_path);
+/* HTTP Header Parsing */
-gboolean soup_parse_response_headers (gchar *str,
- gint len,
- GHashTable *dest,
- guint *status_code,
- gchar **status_phrase);
+gboolean soup_headers_parse_request (gchar *str,
+ gint len,
+ GHashTable *dest,
+ gchar **req_method,
+ gchar **req_path);
+
+gboolean soup_headers_parse_response (gchar *str,
+ gint len,
+ GHashTable *dest,
+ guint *status_code,
+ gchar **status_phrase);
#endif /*SOUP_HEADERS_H*/