Daniel Veillard | 4ecf39f | 1999-09-22 12:14:03 +0000 | [diff] [blame] | 1 | /* |
| 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 Veillard | f600e25 | 1999-12-18 15:32:46 +0000 | [diff] [blame] | 11 | #ifdef __cplusplus |
Daniel Veillard | 5cb5ab8 | 1999-12-21 15:35:29 +0000 | [diff] [blame^] | 12 | extern "C" { |
Daniel Veillard | f600e25 | 1999-12-18 15:32:46 +0000 | [diff] [blame] | 13 | #endif |
Daniel Veillard | 4ecf39f | 1999-09-22 12:14:03 +0000 | [diff] [blame] | 14 | int xmlNanoHTTPFetch (const char *URL, |
Daniel Veillard | 00fdf37 | 1999-10-08 09:40:39 +0000 | [diff] [blame] | 15 | const char *filename, |
| 16 | char **contentType); |
Daniel Veillard | 4ecf39f | 1999-09-22 12:14:03 +0000 | [diff] [blame] | 17 | void * xmlNanoHTTPMethod (const char *URL, |
| 18 | const char *method, |
| 19 | const char *input, |
| 20 | char **contentType, |
| 21 | const char *headers); |
| 22 | void * xmlNanoHTTPOpen (const char *URL, |
| 23 | char **contentType); |
| 24 | int xmlNanoHTTPReturnCode (void *ctx); |
| 25 | int xmlNanoHTTPRead (void *ctx, |
| 26 | void *dest, |
| 27 | int len); |
| 28 | int xmlNanoHTTPSave (void *ctxt, |
| 29 | const char *filename); |
| 30 | void xmlNanoHTTPClose (void *ctx); |
Daniel Veillard | f600e25 | 1999-12-18 15:32:46 +0000 | [diff] [blame] | 31 | #ifdef __cplusplus |
| 32 | } |
| 33 | #endif |
Daniel Veillard | 4ecf39f | 1999-09-22 12:14:03 +0000 | [diff] [blame] | 34 | #endif /* __NANO_HTTP_H__ */ |