blob: 78d1c44d879dcd2fe737d01990e60342f24cbbc7 [file] [log] [blame]
* nanohttp.c: minimalist HTTP implementation to fetch external subsets.
* See Copyright for the status of this software.
#ifndef __NANO_HTTP_H__
#define __NANO_HTTP_H__
#include <libxml/xmlversion.h>
#ifdef __cplusplus
extern "C" {
void xmlNanoHTTPInit (void);
void xmlNanoHTTPCleanup (void);
void xmlNanoHTTPScanProxy (const char *URL);
int xmlNanoHTTPFetch (const char *URL,
const char *filename,
char **contentType);
void * xmlNanoHTTPMethod (const char *URL,
const char *method,
const char *input,
char **contentType,
const char *headers);
void * xmlNanoHTTPOpen (const char *URL,
char **contentType);
int xmlNanoHTTPReturnCode (void *ctx);
const char * xmlNanoHTTPAuthHeader(void *ctx);
int xmlNanoHTTPRead (void *ctx,
void *dest,
int len);
int xmlNanoHTTPSave (void *ctxt,
const char *filename);
void xmlNanoHTTPClose (void *ctx);
#ifdef __cplusplus
#endif /* __NANO_HTTP_H__ */