1 * Summary: minimal HTTP implementation 2 * Description: minimal HTTP implementation allowing to fetch resources 3 * like external subset. 4 * 5 * Copy: See Copyright for the status of this software. 6 * 7 * Author: Patrick Monnerat <pm@datasphere.ch>, DATASPHERE S.A. 8 9 /if not defined(NANO_HTTP_H__) 10 /define NANO_HTTP_H__ 11 12 /include "libxmlrpg/xmlversion" 13 14 /if defined(LIBXML_HTTP_ENABLED) 15 16 /include "libxmlrpg/xmlTypesC" 17 18 d xmlNanoHTTPInit... 19 d pr extproc('xmlNanoHTTPInit') 20 21 d xmlNanoHTTPCleanup... 22 d pr extproc('xmlNanoHTTPCleanup') 23 24 d xmlNanoHTTPScanProxy... 25 d pr extproc('xmlNanoHTTPScanProxy') 26 d URL * value options(*string) const char * 27 28 d xmlNanoHTTPFetch... 29 d pr extproc('xmlNanoHTTPFetch') 30 d like(xmlCint) 31 d URL * value options(*string) const char * 32 d filename * value options(*string) const char * 33 34 d xmlNanoHTTPMethod... 35 d pr * extproc('xmlNanoHTTPMethod') void * 36 d URL * value options(*string) const char * 37 d method * value options(*string) const char * 38 d input * value options(*string) const char * 39 d contentType * value char * * 40 d headers * value options(*string) const char * 41 d ilen value like(xmlCint) 42 43 d xmlNanoHTTPMethodRedir... 44 d pr * extproc('xmlNanoHTTPMethodRedir') void * 45 d URL * value options(*string) const char * 46 d method * value options(*string) const char * 47 d input * value options(*string) const char * 48 d contentType * value char * * 49 d redir * value char * * 50 d headers * value options(*string) const char * 51 d ilen value like(xmlCint) 52 53 d xmlNanoHTTPOpen... 54 d pr * extproc('xmlNanoHTTPOpen') void * 55 d URL * value options(*string) const char * 56 d contentType * char *(*) 57 58 d xmlNanoHTTPOpenRedir... 59 d pr * extproc('xmlNanoHTTPOpenRedir') void * 60 d URL * value options(*string) const char * 61 d contentType * value char * * 62 d redir * value char * * 63 64 d xmlNanoHTTPReturnCode... 65 d pr extproc('xmlNanoHTTPReturnCode') 66 d like(xmlCint) 67 d ctx * value void * 68 69 d xmlNanoHTTPAuthHeader... 70 d pr * extproc('xmlNanoHTTPAuthHeader') const char * 71 d ctx * value void * 72 73 d xmlNanoHTTPRedir... 74 d pr * extproc('xmlNanoHTTPRedir') const char * 75 d ctx * value void * 76 77 d xmlNanoHTTPContentLength... 78 d pr extproc('xmlNanoHTTPContentLength') 79 d like(xmlCint) 80 d ctx * value void * 81 82 d xmlNanoHTTPEncoding... 83 d pr * extproc('xmlNanoHTTPEncoding') const char * 84 d ctx * value void * 85 86 d xmlNanoHTTPMimeType... 87 d pr * extproc('xmlNanoHTTPMimeType') const char * 88 d ctx * value void * 89 90 d xmlNanoHTTPRead... 91 d pr extproc('xmlNanoHTTPRead') 92 d like(xmlCint) 93 d ctx * value void * 94 d dest * value void * 95 d len value like(xmlCint) 96 97 /if defined(LIBXML_OUTPUT_ENABLED) 98 d xmlNanoHTTPSave... 99 d pr extproc('xmlNanoHTTPSave') 100 d like(xmlCint) 101 d ctxt * value void * 102 d filename * value options(*string) const char * 103 /endif LIBXML_OUTPUT_ENABLD 104 105 d xmlNanoHTTPClose... 106 d pr extproc('xmlNanoHTTPClose') 107 d ctx * value void * 108 109 /endif LIBXML_HTTP_ENABLED 110 /endif NANO_HTTP_H__ 111