summaryrefslogtreecommitdiffstats
path: root/http.h
diff options
context:
space:
mode:
authorbertrand <bertrand@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-05-29 16:58:52 +0000
committerbertrand <bertrand@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-05-29 16:58:52 +0000
commit84619a27693f89bc0124ff120204aefc0b3697cb (patch)
treedeed5ccb179bd9e7bbe851e5132eef425b91f174 /http.h
parent3e437015c05a3a0e0931f5b6b14efef3c43bed9a (diff)
downloadmpv-84619a27693f89bc0124ff120204aefc0b3697cb.tar.bz2
mpv-84619a27693f89bc0124ff120204aefc0b3697cb.tar.xz
Bugs fix, improvements...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@903 b3059339-0415-0410-9bf9-f77b7e298cf2
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 );