nanohttp.h 2.1 KB

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