nanohttp.h.svn-base
上传用户:szjkjd
上传日期:2022-06-27
资源大小:8968k
文件大小:2k
源码类别:

浏览器

开发平台:

Visual C++

  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.  
  11. #ifndef __NANO_HTTP_H__
  12. #define __NANO_HTTP_H__
  13. #include <libxml/xmlversion.h>
  14. #ifdef LIBXML_HTTP_ENABLED
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. XMLPUBFUN void XMLCALL
  19. xmlNanoHTTPInit (void);
  20. XMLPUBFUN void XMLCALL
  21. xmlNanoHTTPCleanup (void);
  22. XMLPUBFUN void XMLCALL
  23. xmlNanoHTTPScanProxy (const char *URL);
  24. XMLPUBFUN int XMLCALL
  25. xmlNanoHTTPFetch (const char *URL,
  26.  const char *filename,
  27.  char **contentType);
  28. XMLPUBFUN void * XMLCALL
  29. xmlNanoHTTPMethod (const char *URL,
  30.  const char *method,
  31.  const char *input,
  32.  char **contentType,
  33.  const char *headers,
  34.  int   ilen);
  35. XMLPUBFUN void * XMLCALL
  36. xmlNanoHTTPMethodRedir (const char *URL,
  37.  const char *method,
  38.  const char *input,
  39.  char **contentType,
  40.  char **redir,
  41.  const char *headers,
  42.  int   ilen);
  43. XMLPUBFUN void * XMLCALL
  44. xmlNanoHTTPOpen (const char *URL,
  45.  char **contentType);
  46. XMLPUBFUN void * XMLCALL
  47. xmlNanoHTTPOpenRedir (const char *URL,
  48.  char **contentType,
  49.  char **redir);
  50. XMLPUBFUN int XMLCALL
  51. xmlNanoHTTPReturnCode (void *ctx);
  52. XMLPUBFUN const char * XMLCALL 
  53. xmlNanoHTTPAuthHeader (void *ctx);
  54. XMLPUBFUN const char * XMLCALL
  55. xmlNanoHTTPRedir (void *ctx);
  56. XMLPUBFUN int XMLCALL
  57. xmlNanoHTTPContentLength( void * ctx );
  58. XMLPUBFUN const char * XMLCALL
  59. xmlNanoHTTPEncoding (void *ctx);
  60. XMLPUBFUN const char * XMLCALL
  61. xmlNanoHTTPMimeType (void *ctx);
  62. XMLPUBFUN int XMLCALL
  63. xmlNanoHTTPRead (void *ctx,
  64.  void *dest,
  65.  int len);
  66. #ifdef LIBXML_OUTPUT_ENABLED
  67. XMLPUBFUN int XMLCALL
  68. xmlNanoHTTPSave (void *ctxt,
  69.  const char *filename);
  70. #endif /* LIBXML_OUTPUT_ENABLED */
  71. XMLPUBFUN void XMLCALL
  72. xmlNanoHTTPClose (void *ctx);
  73. #ifdef __cplusplus
  74. }
  75. #endif
  76. #endif /* LIBXML_HTTP_ENABLED */
  77. #endif /* __NANO_HTTP_H__ */