mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
nanohttp: Deprecate public API
The long-term plan is to remove the built-in HTTP client. There are still a few downstream projects that use libxml2's client for other purposes. These users should get deprecation warnings now.
This commit is contained in:
@ -18,16 +18,21 @@
|
|||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void
|
XMLPUBFUN void
|
||||||
xmlNanoHTTPInit (void);
|
xmlNanoHTTPInit (void);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void
|
XMLPUBFUN void
|
||||||
xmlNanoHTTPCleanup (void);
|
xmlNanoHTTPCleanup (void);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void
|
XMLPUBFUN void
|
||||||
xmlNanoHTTPScanProxy (const char *URL);
|
xmlNanoHTTPScanProxy (const char *URL);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN int
|
XMLPUBFUN int
|
||||||
xmlNanoHTTPFetch (const char *URL,
|
xmlNanoHTTPFetch (const char *URL,
|
||||||
const char *filename,
|
const char *filename,
|
||||||
char **contentType);
|
char **contentType);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void *
|
XMLPUBFUN void *
|
||||||
xmlNanoHTTPMethod (const char *URL,
|
xmlNanoHTTPMethod (const char *URL,
|
||||||
const char *method,
|
const char *method,
|
||||||
@ -35,6 +40,7 @@ XMLPUBFUN void *
|
|||||||
char **contentType,
|
char **contentType,
|
||||||
const char *headers,
|
const char *headers,
|
||||||
int ilen);
|
int ilen);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void *
|
XMLPUBFUN void *
|
||||||
xmlNanoHTTPMethodRedir (const char *URL,
|
xmlNanoHTTPMethodRedir (const char *URL,
|
||||||
const char *method,
|
const char *method,
|
||||||
@ -43,34 +49,45 @@ XMLPUBFUN void *
|
|||||||
char **redir,
|
char **redir,
|
||||||
const char *headers,
|
const char *headers,
|
||||||
int ilen);
|
int ilen);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void *
|
XMLPUBFUN void *
|
||||||
xmlNanoHTTPOpen (const char *URL,
|
xmlNanoHTTPOpen (const char *URL,
|
||||||
char **contentType);
|
char **contentType);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void *
|
XMLPUBFUN void *
|
||||||
xmlNanoHTTPOpenRedir (const char *URL,
|
xmlNanoHTTPOpenRedir (const char *URL,
|
||||||
char **contentType,
|
char **contentType,
|
||||||
char **redir);
|
char **redir);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN int
|
XMLPUBFUN int
|
||||||
xmlNanoHTTPReturnCode (void *ctx);
|
xmlNanoHTTPReturnCode (void *ctx);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN const char *
|
XMLPUBFUN const char *
|
||||||
xmlNanoHTTPAuthHeader (void *ctx);
|
xmlNanoHTTPAuthHeader (void *ctx);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN const char *
|
XMLPUBFUN const char *
|
||||||
xmlNanoHTTPRedir (void *ctx);
|
xmlNanoHTTPRedir (void *ctx);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN int
|
XMLPUBFUN int
|
||||||
xmlNanoHTTPContentLength( void * ctx );
|
xmlNanoHTTPContentLength( void * ctx );
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN const char *
|
XMLPUBFUN const char *
|
||||||
xmlNanoHTTPEncoding (void *ctx);
|
xmlNanoHTTPEncoding (void *ctx);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN const char *
|
XMLPUBFUN const char *
|
||||||
xmlNanoHTTPMimeType (void *ctx);
|
xmlNanoHTTPMimeType (void *ctx);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN int
|
XMLPUBFUN int
|
||||||
xmlNanoHTTPRead (void *ctx,
|
xmlNanoHTTPRead (void *ctx,
|
||||||
void *dest,
|
void *dest,
|
||||||
int len);
|
int len);
|
||||||
#ifdef LIBXML_OUTPUT_ENABLED
|
#ifdef LIBXML_OUTPUT_ENABLED
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN int
|
XMLPUBFUN int
|
||||||
xmlNanoHTTPSave (void *ctxt,
|
xmlNanoHTTPSave (void *ctxt,
|
||||||
const char *filename);
|
const char *filename);
|
||||||
#endif /* LIBXML_OUTPUT_ENABLED */
|
#endif /* LIBXML_OUTPUT_ENABLED */
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void
|
XMLPUBFUN void
|
||||||
xmlNanoHTTPClose (void *ctx);
|
xmlNanoHTTPClose (void *ctx);
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -319,6 +319,9 @@ deprecated_funcs = {
|
|||||||
'xmlNanoFTPInit': True,
|
'xmlNanoFTPInit': True,
|
||||||
'xmlNanoFTPProxy': True,
|
'xmlNanoFTPProxy': True,
|
||||||
'xmlNanoFTPScanProxy': True,
|
'xmlNanoFTPScanProxy': True,
|
||||||
|
'xmlNanoHTTPCleanup': True,
|
||||||
|
'xmlNanoHTTPInit': True,
|
||||||
|
'xmlNanoHTTPScanProxy': True,
|
||||||
'xmlNewGlobalNs': True,
|
'xmlNewGlobalNs': True,
|
||||||
'xmlNextChar': True,
|
'xmlNextChar': True,
|
||||||
'xmlParseAttValue': True,
|
'xmlParseAttValue': True,
|
||||||
|
Reference in New Issue
Block a user