summaryrefslogtreecommitdiffstats
path: root/http.h
diff options
context:
space:
mode:
Diffstat (limited to 'http.h')
-rw-r--r--http.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/http.h b/http.h
index 7c3963ffb3..f8919288ae 100644
--- a/http.h
+++ b/http.h
@@ -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 @@ typedef struct {
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 );