Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 10:19:29

0001 /*
0002  * Summary: minimal HTTP implementation
0003  * Description: minimal HTTP implementation allowing to fetch resources
0004  *              like external subset.
0005  *
0006  * Copy: See Copyright for the status of this software.
0007  *
0008  * Author: Daniel Veillard
0009  */
0010 
0011 #ifndef __NANO_HTTP_H__
0012 #define __NANO_HTTP_H__
0013 
0014 #include <libxml/xmlversion.h>
0015 
0016 #ifdef LIBXML_HTTP_ENABLED
0017 
0018 #ifdef __cplusplus
0019 extern "C" {
0020 #endif
0021 XML_DEPRECATED
0022 XMLPUBFUN void
0023     xmlNanoHTTPInit     (void);
0024 XML_DEPRECATED
0025 XMLPUBFUN void
0026     xmlNanoHTTPCleanup  (void);
0027 XML_DEPRECATED
0028 XMLPUBFUN void
0029     xmlNanoHTTPScanProxy    (const char *URL);
0030 XML_DEPRECATED
0031 XMLPUBFUN int
0032     xmlNanoHTTPFetch    (const char *URL,
0033                  const char *filename,
0034                  char **contentType);
0035 XML_DEPRECATED
0036 XMLPUBFUN void *
0037     xmlNanoHTTPMethod   (const char *URL,
0038                  const char *method,
0039                  const char *input,
0040                  char **contentType,
0041                  const char *headers,
0042                  int   ilen);
0043 XML_DEPRECATED
0044 XMLPUBFUN void *
0045     xmlNanoHTTPMethodRedir  (const char *URL,
0046                  const char *method,
0047                  const char *input,
0048                  char **contentType,
0049                  char **redir,
0050                  const char *headers,
0051                  int   ilen);
0052 XML_DEPRECATED
0053 XMLPUBFUN void *
0054     xmlNanoHTTPOpen     (const char *URL,
0055                  char **contentType);
0056 XML_DEPRECATED
0057 XMLPUBFUN void *
0058     xmlNanoHTTPOpenRedir    (const char *URL,
0059                  char **contentType,
0060                  char **redir);
0061 XML_DEPRECATED
0062 XMLPUBFUN int
0063     xmlNanoHTTPReturnCode   (void *ctx);
0064 XML_DEPRECATED
0065 XMLPUBFUN const char *
0066     xmlNanoHTTPAuthHeader   (void *ctx);
0067 XML_DEPRECATED
0068 XMLPUBFUN const char *
0069     xmlNanoHTTPRedir    (void *ctx);
0070 XML_DEPRECATED
0071 XMLPUBFUN int
0072     xmlNanoHTTPContentLength( void * ctx );
0073 XML_DEPRECATED
0074 XMLPUBFUN const char *
0075     xmlNanoHTTPEncoding (void *ctx);
0076 XML_DEPRECATED
0077 XMLPUBFUN const char *
0078     xmlNanoHTTPMimeType (void *ctx);
0079 XML_DEPRECATED
0080 XMLPUBFUN int
0081     xmlNanoHTTPRead     (void *ctx,
0082                  void *dest,
0083                  int len);
0084 #ifdef LIBXML_OUTPUT_ENABLED
0085 XML_DEPRECATED
0086 XMLPUBFUN int
0087     xmlNanoHTTPSave     (void *ctxt,
0088                  const char *filename);
0089 #endif /* LIBXML_OUTPUT_ENABLED */
0090 XML_DEPRECATED
0091 XMLPUBFUN void
0092     xmlNanoHTTPClose    (void *ctx);
0093 #ifdef __cplusplus
0094 }
0095 #endif
0096 
0097 #endif /* LIBXML_HTTP_ENABLED */
0098 #endif /* __NANO_HTTP_H__ */