blob: 6738f8a47179761b46dde018d07a7c9ae72a704c [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);
Daniel Veillard9403a042001-05-28 11:00:53 +000029void * xmlNanoHTTPMethodRedir (const char *URL,
30 const char *method,
31 const char *input,
32 char **contentType,
33 char **redir,
34 const char *headers);
Owen Taylor3473f882001-02-23 17:55:21 +000035void * xmlNanoHTTPOpen (const char *URL,
36 char **contentType);
Daniel Veillard9403a042001-05-28 11:00:53 +000037void * xmlNanoHTTPOpenRedir (const char *URL,
38 char **contentType,
39 char **redir);
Owen Taylor3473f882001-02-23 17:55:21 +000040int xmlNanoHTTPReturnCode (void *ctx);
41const char * xmlNanoHTTPAuthHeader(void *ctx);
42int xmlNanoHTTPRead (void *ctx,
43 void *dest,
44 int len);
45int xmlNanoHTTPSave (void *ctxt,
46 const char *filename);
47void xmlNanoHTTPClose (void *ctx);
48#ifdef __cplusplus
49}
50
51#endif /* LIBXML_HTTP_ENABLED */
52#endif
53#endif /* __NANO_HTTP_H__ */