blob: 78d1c44d879dcd2fe737d01990e60342f24cbbc7 [file] [log] [blame]
Owen Taylor3473f882001-02-23 17:55:21 +00001/*
2 * nanohttp.c: minimalist HTTP implementation to fetch external subsets.
3 *
4 * See Copyright for the status of this software.
5 *
6 * Daniel.Veillard@w3.org
7 */
8
9#ifndef __NANO_HTTP_H__
10#define __NANO_HTTP_H__
11
12#include <libxml/xmlversion.h>
13#ifdef LIBXML_HTTP_ENABLED
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18void xmlNanoHTTPInit (void);
19void xmlNanoHTTPCleanup (void);
20void xmlNanoHTTPScanProxy (const char *URL);
21int xmlNanoHTTPFetch (const char *URL,
22 const char *filename,
23 char **contentType);
24void * xmlNanoHTTPMethod (const char *URL,
25 const char *method,
26 const char *input,
27 char **contentType,
28 const char *headers);
29void * xmlNanoHTTPOpen (const char *URL,
30 char **contentType);
31int xmlNanoHTTPReturnCode (void *ctx);
32const char * xmlNanoHTTPAuthHeader(void *ctx);
33int xmlNanoHTTPRead (void *ctx,
34 void *dest,
35 int len);
36int xmlNanoHTTPSave (void *ctxt,
37 const char *filename);
38void xmlNanoHTTPClose (void *ctx);
39#ifdef __cplusplus
40}
41
42#endif /* LIBXML_HTTP_ENABLED */
43#endif
44#endif /* __NANO_HTTP_H__ */