1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-01-31 13:47:30 +03:00

forgot them in the 1.7.0 commit, oops, Daniel.

This commit is contained in:
Daniel Veillard 1999-09-22 12:14:03 +00:00
parent 7f7d1119af
commit 4ecf39f3e3
3 changed files with 1065 additions and 0 deletions

27
include/libxml/nanohttp.h Normal file
View File

@ -0,0 +1,27 @@
/*
* nanohttp.c: minimalist HTTP implementation to fetch external subsets.
*
* See Copyright for the status of this software.
*
* Daniel.Veillard@w3.org
*/
#ifndef __NANO_HTTP_H__
#define __NANO_HTTP_H__
int xmlNanoHTTPFetch (const char *URL,
const char *filename);
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);
int xmlNanoHTTPRead (void *ctx,
void *dest,
int len);
int xmlNanoHTTPSave (void *ctxt,
const char *filename);
void xmlNanoHTTPClose (void *ctx);
#endif /* __NANO_HTTP_H__ */

1011
nanohttp.c Normal file

File diff suppressed because it is too large Load Diff

27
nanohttp.h Normal file
View File

@ -0,0 +1,27 @@
/*
* nanohttp.c: minimalist HTTP implementation to fetch external subsets.
*
* See Copyright for the status of this software.
*
* Daniel.Veillard@w3.org
*/
#ifndef __NANO_HTTP_H__
#define __NANO_HTTP_H__
int xmlNanoHTTPFetch (const char *URL,
const char *filename);
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);
int xmlNanoHTTPRead (void *ctx,
void *dest,
int len);
int xmlNanoHTTPSave (void *ctxt,
const char *filename);
void xmlNanoHTTPClose (void *ctx);
#endif /* __NANO_HTTP_H__ */