Path: blob/master/venv/Lib/site-packages/lxml/includes/libxml/nanohttp.h
811 views
/*1* Summary: minimal HTTP implementation2* Description: minimal HTTP implementation allowing to fetch resources3* like external subset.4*5* Copy: See Copyright for the status of this software.6*7* Author: Daniel Veillard8*/910#ifndef __NANO_HTTP_H__11#define __NANO_HTTP_H__1213#include <libxml/xmlversion.h>1415#ifdef LIBXML_HTTP_ENABLED1617#ifdef __cplusplus18extern "C" {19#endif20XMLPUBFUN void XMLCALL21xmlNanoHTTPInit (void);22XMLPUBFUN void XMLCALL23xmlNanoHTTPCleanup (void);24XMLPUBFUN void XMLCALL25xmlNanoHTTPScanProxy (const char *URL);26XMLPUBFUN int XMLCALL27xmlNanoHTTPFetch (const char *URL,28const char *filename,29char **contentType);30XMLPUBFUN void * XMLCALL31xmlNanoHTTPMethod (const char *URL,32const char *method,33const char *input,34char **contentType,35const char *headers,36int ilen);37XMLPUBFUN void * XMLCALL38xmlNanoHTTPMethodRedir (const char *URL,39const char *method,40const char *input,41char **contentType,42char **redir,43const char *headers,44int ilen);45XMLPUBFUN void * XMLCALL46xmlNanoHTTPOpen (const char *URL,47char **contentType);48XMLPUBFUN void * XMLCALL49xmlNanoHTTPOpenRedir (const char *URL,50char **contentType,51char **redir);52XMLPUBFUN int XMLCALL53xmlNanoHTTPReturnCode (void *ctx);54XMLPUBFUN const char * XMLCALL55xmlNanoHTTPAuthHeader (void *ctx);56XMLPUBFUN const char * XMLCALL57xmlNanoHTTPRedir (void *ctx);58XMLPUBFUN int XMLCALL59xmlNanoHTTPContentLength( void * ctx );60XMLPUBFUN const char * XMLCALL61xmlNanoHTTPEncoding (void *ctx);62XMLPUBFUN const char * XMLCALL63xmlNanoHTTPMimeType (void *ctx);64XMLPUBFUN int XMLCALL65xmlNanoHTTPRead (void *ctx,66void *dest,67int len);68#ifdef LIBXML_OUTPUT_ENABLED69XMLPUBFUN int XMLCALL70xmlNanoHTTPSave (void *ctxt,71const char *filename);72#endif /* LIBXML_OUTPUT_ENABLED */73XMLPUBFUN void XMLCALL74xmlNanoHTTPClose (void *ctx);75#ifdef __cplusplus76}77#endif7879#endif /* LIBXML_HTTP_ENABLED */80#endif /* __NANO_HTTP_H__ */818283