Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
nanohttp.h82 linesDownload Raw Back to libxml
1/*2 * Summary: minimal HTTP implementation3 * Description: minimal HTTP implementation allowing to fetch resources4 *              like external subset.5 *6 * Copy: See Copyright for the status of this software.7 *8 * Author: Daniel Veillard9 */10 11#ifndef __NANO_HTTP_H__12#define __NANO_HTTP_H__13 14#include <libxml/xmlversion.h>15 16#ifdef LIBXML_HTTP_ENABLED17 18#ifdef __cplusplus19extern "C" {20#endif21XMLPUBFUN void22	xmlNanoHTTPInit		(void);23XMLPUBFUN void24	xmlNanoHTTPCleanup	(void);25XMLPUBFUN void26	xmlNanoHTTPScanProxy	(const char *URL);27XMLPUBFUN int28	xmlNanoHTTPFetch	(const char *URL,29				 const char *filename,30				 char **contentType);31XMLPUBFUN void *32	xmlNanoHTTPMethod	(const char *URL,33				 const char *method,34				 const char *input,35				 char **contentType,36				 const char *headers,37				 int   ilen);38XMLPUBFUN void *39	xmlNanoHTTPMethodRedir	(const char *URL,40				 const char *method,41				 const char *input,42				 char **contentType,43				 char **redir,44				 const char *headers,45				 int   ilen);46XMLPUBFUN void *47	xmlNanoHTTPOpen		(const char *URL,48				 char **contentType);49XMLPUBFUN void *50	xmlNanoHTTPOpenRedir	(const char *URL,51				 char **contentType,52				 char **redir);53XMLPUBFUN int54	xmlNanoHTTPReturnCode	(void *ctx);55XMLPUBFUN const char *56	xmlNanoHTTPAuthHeader	(void *ctx);57XMLPUBFUN const char *58	xmlNanoHTTPRedir	(void *ctx);59XMLPUBFUN int60	xmlNanoHTTPContentLength( void * ctx );61XMLPUBFUN const char *62	xmlNanoHTTPEncoding	(void *ctx);63XMLPUBFUN const char *64	xmlNanoHTTPMimeType	(void *ctx);65XMLPUBFUN int66	xmlNanoHTTPRead		(void *ctx,67				 void *dest,68				 int len);69#ifdef LIBXML_OUTPUT_ENABLED70XMLPUBFUN int71	xmlNanoHTTPSave		(void *ctxt,72				 const char *filename);73#endif /* LIBXML_OUTPUT_ENABLED */74XMLPUBFUN void75	xmlNanoHTTPClose	(void *ctx);76#ifdef __cplusplus77}78#endif79 80#endif /* LIBXML_HTTP_ENABLED */81#endif /* __NANO_HTTP_H__ */82 
codekingpro/portable-devtools · Team Ai