/* delete a host */
VLC_API void httpd_HostDelete( httpd_host_t * );
+typedef struct
+{
+ char * name;
+ char * value;
+} httpd_header;
+
typedef struct httpd_message_t
{
httpd_client_t *cl; /* NULL if not throught a connection e vlc internal */
uint8_t *psz_args;
/* options */
- int i_name;
- char **name;
- int i_value;
- char **value;
+ size_t i_headers;
+ httpd_header *p_headers;
/* body */
int64_t i_body_offset;
VLC_API void httpd_StreamDelete( httpd_stream_t * );
VLC_API int httpd_StreamHeader( httpd_stream_t *, uint8_t *p_data, int i_data );
VLC_API int httpd_StreamSend( httpd_stream_t *, const block_t *p_block );
-
+VLC_API int httpd_StreamSetHTTPHeaders(httpd_stream_t *, httpd_header *, size_t);
/* Msg functions facilities */
VLC_API void httpd_MsgAdd( httpd_message_t *, const char *psz_name, const char *psz_value, ... ) VLC_FORMAT( 3, 4 );