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); |
Daniel Veillard | 9403a04 | 2001-05-28 11:00:53 +0000 | [diff] [blame^] | 29 | void * xmlNanoHTTPMethodRedir (const char *URL, |
| 30 | const char *method, |
| 31 | const char *input, |
| 32 | char **contentType, |
| 33 | char **redir, |
| 34 | const char *headers); |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 35 | void * xmlNanoHTTPOpen (const char *URL, |
| 36 | char **contentType); |
Daniel Veillard | 9403a04 | 2001-05-28 11:00:53 +0000 | [diff] [blame^] | 37 | void * xmlNanoHTTPOpenRedir (const char *URL, |
| 38 | char **contentType, |
| 39 | char **redir); |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 40 | int xmlNanoHTTPReturnCode (void *ctx); |
| 41 | const char * xmlNanoHTTPAuthHeader(void *ctx); |
| 42 | int xmlNanoHTTPRead (void *ctx, |
| 43 | void *dest, |
| 44 | int len); |
| 45 | int xmlNanoHTTPSave (void *ctxt, |
| 46 | const char *filename); |
| 47 | void xmlNanoHTTPClose (void *ctx); |
| 48 | #ifdef __cplusplus |
| 49 | } |
| 50 | |
| 51 | #endif /* LIBXML_HTTP_ENABLED */ |
| 52 | #endif |
| 53 | #endif /* __NANO_HTTP_H__ */ |