blob: aeefe405292cc80c66f4d644388444c69f0aa2f6 [file] [log] [blame]
Daniel Veillard4ecf39f1999-09-22 12:14:03 +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__
Daniel Veillardf600e251999-12-18 15:32:46 +000011#ifdef __cplusplus
Daniel Veillard5cb5ab81999-12-21 15:35:29 +000012extern "C" {
Daniel Veillardf600e251999-12-18 15:32:46 +000013#endif
Daniel Veillard4ecf39f1999-09-22 12:14:03 +000014int xmlNanoHTTPFetch (const char *URL,
Daniel Veillard00fdf371999-10-08 09:40:39 +000015 const char *filename,
16 char **contentType);
Daniel Veillard4ecf39f1999-09-22 12:14:03 +000017void * xmlNanoHTTPMethod (const char *URL,
18 const char *method,
19 const char *input,
20 char **contentType,
21 const char *headers);
22void * xmlNanoHTTPOpen (const char *URL,
23 char **contentType);
24int xmlNanoHTTPReturnCode (void *ctx);
25int xmlNanoHTTPRead (void *ctx,
26 void *dest,
27 int len);
28int xmlNanoHTTPSave (void *ctxt,
29 const char *filename);
30void xmlNanoHTTPClose (void *ctx);
Daniel Veillardf600e251999-12-18 15:32:46 +000031#ifdef __cplusplus
32}
33#endif
Daniel Veillard4ecf39f1999-09-22 12:14:03 +000034#endif /* __NANO_HTTP_H__ */