1 /* 2 * Summary: minimal HTTP implementation 3 * Description: minimal HTTP implementation allowing to fetch resources 4 * like external subset. 5 * 6 * Copy: See Copyright for the status of this software. 7 * 8 * Author: Daniel Veillard 9 */ 10 11 #ifndef __NANO_HTTP_H__ 12 #define __NANO_HTTP_H__ 13 14 #include <libxml/xmlversion.h> 15 16 #ifdef LIBXML_HTTP_ENABLED 17 18 #ifdef __cplusplus 19 extern "C" { 20 #endif 21 XML_DEPRECATED 22 XMLPUBFUN void 23 xmlNanoHTTPInit (void); 24 XML_DEPRECATED 25 XMLPUBFUN void 26 xmlNanoHTTPCleanup (void); 27 XML_DEPRECATED 28 XMLPUBFUN void 29 xmlNanoHTTPScanProxy (const char *URL); 30 XML_DEPRECATED 31 XMLPUBFUN int 32 xmlNanoHTTPFetch (const char *URL, 33 const char *filename, 34 char **contentType); 35 XML_DEPRECATED 36 XMLPUBFUN void * 37 xmlNanoHTTPMethod (const char *URL, 38 const char *method, 39 const char *input, 40 char **contentType, 41 const char *headers, 42 int ilen); 43 XML_DEPRECATED 44 XMLPUBFUN void * 45 xmlNanoHTTPMethodRedir (const char *URL, 46 const char *method, 47 const char *input, 48 char **contentType, 49 char **redir, 50 const char *headers, 51 int ilen); 52 XML_DEPRECATED 53 XMLPUBFUN void * 54 xmlNanoHTTPOpen (const char *URL, 55 char **contentType); 56 XML_DEPRECATED 57 XMLPUBFUN void * 58 xmlNanoHTTPOpenRedir (const char *URL, 59 char **contentType, 60 char **redir); 61 XML_DEPRECATED 62 XMLPUBFUN int 63 xmlNanoHTTPReturnCode (void *ctx); 64 XML_DEPRECATED 65 XMLPUBFUN const char * 66 xmlNanoHTTPAuthHeader (void *ctx); 67 XML_DEPRECATED 68 XMLPUBFUN const char * 69 xmlNanoHTTPRedir (void *ctx); 70 XML_DEPRECATED 71 XMLPUBFUN int 72 xmlNanoHTTPContentLength( void * ctx ); 73 XML_DEPRECATED 74 XMLPUBFUN const char * 75 xmlNanoHTTPEncoding (void *ctx); 76 XML_DEPRECATED 77 XMLPUBFUN const char * 78 xmlNanoHTTPMimeType (void *ctx); 79 XML_DEPRECATED 80 XMLPUBFUN int 81 xmlNanoHTTPRead (void *ctx, 82 void *dest, 83 int len); 84 #ifdef LIBXML_OUTPUT_ENABLED 85 XML_DEPRECATED 86 XMLPUBFUN int 87 xmlNanoHTTPSave (void *ctxt, 88 const char *filename); 89 #endif /* LIBXML_OUTPUT_ENABLED */ 90 XML_DEPRECATED 91 XMLPUBFUN void 92 xmlNanoHTTPClose (void *ctx); 93 #ifdef __cplusplus 94 } 95 #endif 96 97 #endif /* LIBXML_HTTP_ENABLED */ 98 #endif /* __NANO_HTTP_H__ */ 99