nanohttp.h 2.1 KB

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