2
* Summary: minimal HTTP implementation
3
* Description: minimal HTTP implementation allowing to fetch resources
4
* like external subset.
6
* Copy: See Copyright for the status of this software.
8
* Author: Daniel Veillard
11
#ifndef __NANO_HTTP_H__
12
#define __NANO_HTTP_H__
14
#include <libxml/xmlversion.h>
16
#ifdef LIBXML_HTTP_ENABLED
21
XMLPUBFUN void XMLCALL
22
xmlNanoHTTPInit (void);
23
XMLPUBFUN void XMLCALL
24
xmlNanoHTTPCleanup (void);
25
XMLPUBFUN void XMLCALL
26
xmlNanoHTTPScanProxy (const char *URL);
28
xmlNanoHTTPFetch (const char *URL,
31
XMLPUBFUN void * XMLCALL
32
xmlNanoHTTPMethod (const char *URL,
38
XMLPUBFUN void * XMLCALL
39
xmlNanoHTTPMethodRedir (const char *URL,
46
XMLPUBFUN void * XMLCALL
47
xmlNanoHTTPOpen (const char *URL,
49
XMLPUBFUN void * XMLCALL
50
xmlNanoHTTPOpenRedir (const char *URL,
54
xmlNanoHTTPReturnCode (void *ctx);
55
XMLPUBFUN const char * XMLCALL
56
xmlNanoHTTPAuthHeader (void *ctx);
57
XMLPUBFUN const char * XMLCALL
58
xmlNanoHTTPRedir (void *ctx);
60
xmlNanoHTTPContentLength( void * ctx );
61
XMLPUBFUN const char * XMLCALL
62
xmlNanoHTTPEncoding (void *ctx);
63
XMLPUBFUN const char * XMLCALL
64
xmlNanoHTTPMimeType (void *ctx);
66
xmlNanoHTTPRead (void *ctx,
69
#ifdef LIBXML_OUTPUT_ENABLED
71
xmlNanoHTTPSave (void *ctxt,
72
const char *filename);
73
#endif /* LIBXML_OUTPUT_ENABLED */
74
XMLPUBFUN void XMLCALL
75
xmlNanoHTTPClose (void *ctx);
80
#endif /* LIBXML_HTTP_ENABLED */
81
#endif /* __NANO_HTTP_H__ */