2 * nanohttp.c: minimalist HTTP implementation to fetch external subsets.
4 * See Copyright for the status of this software.
9 #ifndef __NANO_HTTP_H__
10 #define __NANO_HTTP_H__
12 #include <libxml/xmlversion.h>
14 #ifdef LIBXML_HTTP_ENABLED
19 void xmlNanoHTTPInit (void);
20 void xmlNanoHTTPCleanup (void);
21 void xmlNanoHTTPScanProxy (const char *URL);
22 int xmlNanoHTTPFetch (const char *URL,
25 void * xmlNanoHTTPMethod (const char *URL,
31 void * xmlNanoHTTPMethodRedir (const char *URL,
38 void * xmlNanoHTTPOpen (const char *URL,
40 void * xmlNanoHTTPOpenRedir (const char *URL,
43 int xmlNanoHTTPReturnCode (void *ctx);
44 const char * xmlNanoHTTPAuthHeader(void *ctx);
45 int xmlNanoHTTPRead (void *ctx,
48 int xmlNanoHTTPSave (void *ctxt,
49 const char *filename);
50 void xmlNanoHTTPClose (void *ctx);
54 #endif /* LIBXML_HTTP_ENABLED */
56 #endif /* __NANO_HTTP_H__ */