Eneboo - Documentación para desarrolladores
|
00001 /* 00002 * Summary: minimal HTTP implementation 00003 * Description: minimal HTTP implementation allowing to fetch resources 00004 * like external subset. 00005 * 00006 * Copy: See Copyright for the status of this software. 00007 * 00008 * Author: Daniel Veillard 00009 */ 00010 00011 #ifndef __NANO_HTTP_H__ 00012 #define __NANO_HTTP_H__ 00013 00014 #include <libxml/xmlversion.h> 00015 00016 #ifdef LIBXML_HTTP_ENABLED 00017 00018 #ifdef __cplusplus 00019 extern "C" { 00020 #endif 00021 XMLPUBFUN void XMLCALL 00022 xmlNanoHTTPInit (void); 00023 XMLPUBFUN void XMLCALL 00024 xmlNanoHTTPCleanup (void); 00025 XMLPUBFUN void XMLCALL 00026 xmlNanoHTTPScanProxy (const char *URL); 00027 XMLPUBFUN int XMLCALL 00028 xmlNanoHTTPFetch (const char *URL, 00029 const char *filename, 00030 char **contentType); 00031 XMLPUBFUN void * XMLCALL 00032 xmlNanoHTTPMethod (const char *URL, 00033 const char *method, 00034 const char *input, 00035 char **contentType, 00036 const char *headers, 00037 int ilen); 00038 XMLPUBFUN void * XMLCALL 00039 xmlNanoHTTPMethodRedir (const char *URL, 00040 const char *method, 00041 const char *input, 00042 char **contentType, 00043 char **redir, 00044 const char *headers, 00045 int ilen); 00046 XMLPUBFUN void * XMLCALL 00047 xmlNanoHTTPOpen (const char *URL, 00048 char **contentType); 00049 XMLPUBFUN void * XMLCALL 00050 xmlNanoHTTPOpenRedir (const char *URL, 00051 char **contentType, 00052 char **redir); 00053 XMLPUBFUN int XMLCALL 00054 xmlNanoHTTPReturnCode (void *ctx); 00055 XMLPUBFUN const char * XMLCALL 00056 xmlNanoHTTPAuthHeader (void *ctx); 00057 XMLPUBFUN const char * XMLCALL 00058 xmlNanoHTTPRedir (void *ctx); 00059 XMLPUBFUN int XMLCALL 00060 xmlNanoHTTPContentLength( void * ctx ); 00061 XMLPUBFUN const char * XMLCALL 00062 xmlNanoHTTPEncoding (void *ctx); 00063 XMLPUBFUN const char * XMLCALL 00064 xmlNanoHTTPMimeType (void *ctx); 00065 XMLPUBFUN int XMLCALL 00066 xmlNanoHTTPRead (void *ctx, 00067 void *dest, 00068 int len); 00069 #ifdef LIBXML_OUTPUT_ENABLED 00070 XMLPUBFUN int XMLCALL 00071 xmlNanoHTTPSave (void *ctxt, 00072 const char *filename); 00073 #endif /* LIBXML_OUTPUT_ENABLED */ 00074 XMLPUBFUN void XMLCALL 00075 xmlNanoHTTPClose (void *ctx); 00076 #ifdef __cplusplus 00077 } 00078 #endif 00079 00080 #endif /* LIBXML_HTTP_ENABLED */ 00081 #endif /* __NANO_HTTP_H__ */