nanohttp.h

00001 /*
00002 
00003  * Summary: minimal HTTP implementation
00004 
00005  * Description: minimal HTTP implementation allowing to fetch resources
00006 
00007  *              like external subset.
00008 
00009  *
00010 
00011  * Copy: See Copyright for the status of this software.
00012 
00013  *
00014 
00015  * Author: Daniel Veillard
00016 
00017  */
00018 
00019  
00020 
00021 #ifndef __NANO_HTTP_H__
00022 
00023 #define __NANO_HTTP_H__
00024 
00025 
00026 
00027 #include <libxml/xmlversion.h>
00028 
00029 
00030 
00031 #ifdef LIBXML_HTTP_ENABLED
00032 
00033 
00034 
00035 #ifdef __cplusplus
00036 
00037 extern "C" {
00038 
00039 #endif
00040 
00041 XMLPUBFUN void XMLCALL
00042 
00043         xmlNanoHTTPInit         (void);
00044 
00045 XMLPUBFUN void XMLCALL  
00046 
00047         xmlNanoHTTPCleanup      (void);
00048 
00049 XMLPUBFUN void XMLCALL  
00050 
00051         xmlNanoHTTPScanProxy    (const char *URL);
00052 
00053 XMLPUBFUN int XMLCALL   
00054 
00055         xmlNanoHTTPFetch        (const char *URL,
00056 
00057                                  const char *filename,
00058 
00059                                  char **contentType);
00060 
00061 XMLPUBFUN void * XMLCALL        
00062 
00063         xmlNanoHTTPMethod       (const char *URL,
00064 
00065                                  const char *method,
00066 
00067                                  const char *input,
00068 
00069                                  char **contentType,
00070 
00071                                  const char *headers,
00072 
00073                                  int   ilen);
00074 
00075 XMLPUBFUN void * XMLCALL        
00076 
00077         xmlNanoHTTPMethodRedir  (const char *URL,
00078 
00079                                  const char *method,
00080 
00081                                  const char *input,
00082 
00083                                  char **contentType,
00084 
00085                                  char **redir,
00086 
00087                                  const char *headers,
00088 
00089                                  int   ilen);
00090 
00091 XMLPUBFUN void * XMLCALL        
00092 
00093         xmlNanoHTTPOpen         (const char *URL,
00094 
00095                                  char **contentType);
00096 
00097 XMLPUBFUN void * XMLCALL        
00098 
00099         xmlNanoHTTPOpenRedir    (const char *URL,
00100 
00101                                  char **contentType,
00102 
00103                                  char **redir);
00104 
00105 XMLPUBFUN int XMLCALL   
00106 
00107         xmlNanoHTTPReturnCode   (void *ctx);
00108 
00109 XMLPUBFUN const char * XMLCALL 
00110 
00111         xmlNanoHTTPAuthHeader   (void *ctx);
00112 
00113 XMLPUBFUN const char * XMLCALL
00114 
00115         xmlNanoHTTPRedir        (void *ctx);
00116 
00117 XMLPUBFUN int XMLCALL
00118 
00119         xmlNanoHTTPContentLength( void * ctx );
00120 
00121 XMLPUBFUN const char * XMLCALL
00122 
00123         xmlNanoHTTPEncoding     (void *ctx);
00124 
00125 XMLPUBFUN const char * XMLCALL
00126 
00127         xmlNanoHTTPMimeType     (void *ctx);
00128 
00129 XMLPUBFUN int XMLCALL   
00130 
00131         xmlNanoHTTPRead         (void *ctx,
00132 
00133                                  void *dest,
00134 
00135                                  int len);
00136 
00137 #ifdef LIBXML_OUTPUT_ENABLED
00138 
00139 XMLPUBFUN int XMLCALL   
00140 
00141         xmlNanoHTTPSave         (void *ctxt,
00142 
00143                                  const char *filename);
00144 
00145 #endif /* LIBXML_OUTPUT_ENABLED */
00146 
00147 XMLPUBFUN void XMLCALL  
00148 
00149         xmlNanoHTTPClose        (void *ctx);
00150 
00151 #ifdef __cplusplus
00152 
00153 }
00154 
00155 #endif
00156 
00157 
00158 
00159 #endif /* LIBXML_HTTP_ENABLED */
00160 
00161 #endif /* __NANO_HTTP_H__ */
00162 

Generated on Wed Jul 26 13:30:46 2006 for XSB by  doxygen 1.4.5