00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef __NANO_HTTP_H__
00010 #define __NANO_HTTP_H__
00011
00012 #include <libxml/xmlversion.h>
00013
00014 #ifdef LIBXML_HTTP_ENABLED
00015
00016 #ifdef __cplusplus
00017 extern "C" {
00018 #endif
00019 XMLPUBFUN void XMLCALL
00020 xmlNanoHTTPInit (void);
00021 XMLPUBFUN void XMLCALL
00022 xmlNanoHTTPCleanup (void);
00023 XMLPUBFUN void XMLCALL
00024 xmlNanoHTTPScanProxy (const char *URL);
00025 XMLPUBFUN int XMLCALL
00026 xmlNanoHTTPFetch (const char *URL,
00027 const char *filename,
00028 char **contentType);
00029 XMLPUBFUN void * XMLCALL
00030 xmlNanoHTTPMethod (const char *URL,
00031 const char *method,
00032 const char *input,
00033 char **contentType,
00034 const char *headers,
00035 int ilen);
00036 XMLPUBFUN void * XMLCALL
00037 xmlNanoHTTPMethodRedir (const char *URL,
00038 const char *method,
00039 const char *input,
00040 char **contentType,
00041 char **redir,
00042 const char *headers,
00043 int ilen);
00044 XMLPUBFUN void * XMLCALL
00045 xmlNanoHTTPOpen (const char *URL,
00046 char **contentType);
00047 XMLPUBFUN void * XMLCALL
00048 xmlNanoHTTPOpenRedir (const char *URL,
00049 char **contentType,
00050 char **redir);
00051 XMLPUBFUN int XMLCALL
00052 xmlNanoHTTPReturnCode (void *ctx);
00053 XMLPUBFUN const char * XMLCALL
00054 xmlNanoHTTPAuthHeader (void *ctx);
00055 XMLPUBFUN const char * XMLCALL
00056 xmlNanoHTTPRedir (void *ctx);
00057 XMLPUBFUN const char * XMLCALL
00058 xmlNanoHTTPEncoding (void *ctx);
00059 XMLPUBFUN const char * XMLCALL
00060 xmlNanoHTTPMimeType (void *ctx);
00061 XMLPUBFUN int XMLCALL
00062 xmlNanoHTTPRead (void *ctx,
00063 void *dest,
00064 int len);
00065 #ifdef LIBXML_OUTPUT_ENABLED
00066 XMLPUBFUN int XMLCALL
00067 xmlNanoHTTPSave (void *ctxt,
00068 const char *filename);
00069 #endif
00070 XMLPUBFUN void XMLCALL
00071 xmlNanoHTTPClose (void *ctx);
00072 #ifdef __cplusplus
00073 }
00074 #endif
00075
00076 #endif
00077 #endif
00078