summaryrefslogtreecommitdiff
path: root/libsoup/soup-headers.h
diff options
context:
space:
mode:
authoralex <alex@ximian.com>2001-02-06 21:59:21 +0000
committeralex <alex>2001-02-06 21:59:21 +0000
commit61fee5ff2ebc9399c72259f3a50ec6c0f1abfd84 (patch)
treeadf3c4cd9e797618c78d03143765e2d3bfdefa7a /libsoup/soup-headers.h
parentd30475d2f8defb01c8879da1b15afe7dc2d2d4f5 (diff)
downloadlibsoup-61fee5ff2ebc9399c72259f3a50ec6c0f1abfd84.tar.gz
remove some cruft.
2001-02-06 alex <alex@ximian.com> * soup-config.in: remove some cruft. * soupConf.sh.in: remove some cruft. * src/soup-core/Makefile.am: build soup-headers.c * src/soup-core/soup-headers.[ch]: created. refactor of header parsing logic for use in requests and responses. * src/soup-core/soup-message.c: free req->response_phrase as it is now allocated. * src/soup-core/soup-queue.c (soup_parse_headers): use soup_parse_response_headers. (soup_queue_reqest): free req->response_phrase. * src/soup-core/soup-serializer.h: include <time.h>
Diffstat (limited to 'libsoup/soup-headers.h')
-rw-r--r--libsoup/soup-headers.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/libsoup/soup-headers.h b/libsoup/soup-headers.h
new file mode 100644
index 00000000..a90c4064
--- /dev/null
+++ b/libsoup/soup-headers.h
@@ -0,0 +1,28 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+/*
+ * soup-headers.h: Asyncronous Callback-based SOAP Request Queue.
+ *
+ * Authors:
+ * Alex Graveley (alex@helixcode.com)
+ *
+ * Copyright (C) 2000, Helix Code, Inc.
+ */
+
+#ifndef SOUP_HEADERS_H
+#define SOUP_HEADERS_H 1
+
+#include <glib.h>
+
+gboolean soup_parse_request_headers (gchar *str,
+ gint len,
+ GHashTable *dest,
+ gchar **req_method,
+ gchar **req_path);
+
+gboolean soup_parse_response_headers (gchar *str,
+ gint len,
+ GHashTable *dest,
+ guint *status_code,
+ gchar **status_phrase);
+
+#endif /*SOUP_HEADERS_H*/