Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +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__ |
| 11 | |
| 12 | #include <libxml/xmlversion.h> |
| 13 | #ifdef LIBXML_HTTP_ENABLED |
| 14 | |
| 15 | #ifdef __cplusplus |
| 16 | extern "C" { |
| 17 | #endif |
| 18 | void xmlNanoHTTPInit (void); |
| 19 | void xmlNanoHTTPCleanup (void); |
| 20 | void xmlNanoHTTPScanProxy (const char *URL); |
| 21 | int xmlNanoHTTPFetch (const char *URL, |
| 22 | const char *filename, |
| 23 | char **contentType); |
| 24 | void * xmlNanoHTTPMethod (const char *URL, |
| 25 | const char *method, |
| 26 | const char *input, |
| 27 | char **contentType, |
| 28 | const char *headers); |
| 29 | void * xmlNanoHTTPOpen (const char *URL, |
| 30 | char **contentType); |
| 31 | int xmlNanoHTTPReturnCode (void *ctx); |
| 32 | const char * xmlNanoHTTPAuthHeader(void *ctx); |
| 33 | int xmlNanoHTTPRead (void *ctx, |
| 34 | void *dest, |
| 35 | int len); |
| 36 | int xmlNanoHTTPSave (void *ctxt, |
| 37 | const char *filename); |
| 38 | void xmlNanoHTTPClose (void *ctx); |
| 39 | #ifdef __cplusplus |
| 40 | } |
| 41 | |
| 42 | #endif /* LIBXML_HTTP_ENABLED */ |
| 43 | #endif |
| 44 | #endif /* __NANO_HTTP_H__ */ |