blob: 8551156b8e9344138abc7d8c20bcef4016a00c75 [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__
11int xmlNanoHTTPFetch (const char *URL,
Daniel Veillard00fdf371999-10-08 09:40:39 +000012 const char *filename,
13 char **contentType);
Daniel Veillard4ecf39f1999-09-22 12:14:03 +000014void * xmlNanoHTTPMethod (const char *URL,
15 const char *method,
16 const char *input,
17 char **contentType,
18 const char *headers);
19void * xmlNanoHTTPOpen (const char *URL,
20 char **contentType);
21int xmlNanoHTTPReturnCode (void *ctx);
22int xmlNanoHTTPRead (void *ctx,
23 void *dest,
24 int len);
25int xmlNanoHTTPSave (void *ctxt,
26 const char *filename);
27void xmlNanoHTTPClose (void *ctx);
28#endif /* __NANO_HTTP_H__ */