diff http.h @ 902:ede5785faa53

Bugs fix, improvements...
author bertrand
date Tue, 29 May 2001 16:58:52 +0000
parents f641c96e431b
children
line wrap: on
line diff
--- a/http.h	Tue May 29 16:50:43 2001 +0000
+++ b/http.h	Tue May 29 16:58:52 2001 +0000
@@ -1,3 +1,9 @@
+/* 
+ * HTTP Helper
+ * by Bertrand Baudet <bertrand_baudet@yahoo.com>
+ * (C) 2001, MPlayer team.
+ */
+
 #ifndef __HTTP_H
 #define __HTTP_H
 
@@ -16,12 +22,17 @@
 	int search_pos;
 	char *body;
 	int body_size;
+	char *buffer;
+	int buffer_size;
+	int is_parsed;
 } HTTP_header_t;
 
 HTTP_header_t*	http_new_header();
 void		http_free( HTTP_header_t *http_hdr );
-HTTP_header_t*	http_new_response( char *data, int length );
-char* 		http_get_request( HTTP_header_t *http_hdr );
+int		http_response_append( HTTP_header_t *http_hdr, char *data, int length );
+int		http_response_parse( HTTP_header_t *http_hdr );
+int		http_is_header_entired( HTTP_header_t *http_hdr );
+char* 		http_build_request( HTTP_header_t *http_hdr );
 char* 		http_get_field( HTTP_header_t *http_hdr, const char *field_name );
 char*		http_get_next_field( HTTP_header_t *http_hdr );
 void		http_set_field( HTTP_header_t *http_hdr, const char *field );