Debian Codegraph @

include/libxml/nanohttp.h

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