mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2026-01-18 14:21:02 +03:00
* AUTHORS: added William and Bjorn * include/libxml/*.h *.c README doc/*.html etc.: changed old email to daniel@veillard.com hopefully I won't have to do this again * doc/Makefile.am doc/html/*.html: cleanup makefile, checked that docs can be rebuilt cleanly now * include/libxml/xml*version.h*: removed include/libxml/xmlversion.h from CVs it's generated, added include/libxml/xmlwin32version.h also generated but which should change far less frequently. * catalog.c nanoftp.c: made sure to include libxml.h not libxml/xmlversion.h directly * include/libxml/*.h: include xmlwin32version.h instead of xmlversion.h when compiling on WIN32 and MSC Daniel
58 lines
1.4 KiB
C
58 lines
1.4 KiB
C
/*
|
|
* nanohttp.c: minimalist HTTP implementation to fetch external subsets.
|
|
*
|
|
* See Copyright for the status of this software.
|
|
*
|
|
* daniel@veillard.com
|
|
*/
|
|
|
|
#ifndef __NANO_HTTP_H__
|
|
#define __NANO_HTTP_H__
|
|
|
|
#if defined(WIN32) && defined(_MSC_VER)
|
|
#include <libxml/xmlwin32version.h>
|
|
#else
|
|
#include <libxml/xmlversion.h>
|
|
#endif
|
|
#ifdef LIBXML_HTTP_ENABLED
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
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 * xmlNanoHTTPMethodRedir (const char *URL,
|
|
const char *method,
|
|
const char *input,
|
|
char **contentType,
|
|
char **redir,
|
|
const char *headers);
|
|
void * xmlNanoHTTPOpen (const char *URL,
|
|
char **contentType);
|
|
void * xmlNanoHTTPOpenRedir (const char *URL,
|
|
char **contentType,
|
|
char **redir);
|
|
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 /* LIBXML_HTTP_ENABLED */
|
|
#endif
|
|
#endif /* __NANO_HTTP_H__ */
|