• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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     d xmlNanoHTTPInit...
17     d                 pr                  extproc('xmlNanoHTTPInit')
18
19     d xmlNanoHTTPCleanup...
20     d                 pr                  extproc('xmlNanoHTTPCleanup')
21
22     d xmlNanoHTTPScanProxy...
23     d                 pr                  extproc('xmlNanoHTTPScanProxy')
24     d  URL                            *   value options(*string)               const char *
25
26     d xmlNanoHTTPFetch...
27     d                 pr            10i 0 extproc('xmlNanoHTTPFetch')
28     d  URL                            *   value options(*string)               const char *
29     d  filename                       *   value options(*string)               const char *
30
31     d xmlNanoHTTPMethod...
32     d                 pr              *   extproc('xmlNanoHTTPMethod')         void *
33     d  URL                            *   value options(*string)               const char *
34     d  method                         *   value options(*string)               const char *
35     d  input                          *   value options(*string)               const char *
36     d  contentType                    *   value                                char * *
37     d  headers                        *   value options(*string)               const char *
38     d  ilen                         10i 0 value
39
40     d xmlNanoHTTPMethodRedir...
41     d                 pr              *   extproc('xmlNanoHTTPMethodRedir')    void *
42     d  URL                            *   value options(*string)               const char *
43     d  method                         *   value options(*string)               const char *
44     d  input                          *   value options(*string)               const char *
45     d  contentType                    *   value                                char * *
46     d  redir                          *   value                                char * *
47     d  headers                        *   value options(*string)               const char *
48     d  ilen                         10i 0 value
49
50     d xmlNanoHTTPOpen...
51     d                 pr              *   extproc('xmlNanoHTTPOpen')           void *
52     d  URL                            *   value options(*string)               const char *
53     d  contentType                    *                                        char *(*)
54
55     d xmlNanoHTTPOpenRedir...
56     d                 pr              *   extproc('xmlNanoHTTPOpenRedir')      void *
57     d  URL                            *   value options(*string)               const char *
58     d  contentType                    *   value                                char * *
59     d  redir                          *   value                                char * *
60
61     d xmlNanoHTTPReturnCode...
62     d                 pr            10i 0 extproc('xmlNanoHTTPReturnCode')
63     d  ctx                            *   value                                void *
64
65     d xmlNanoHTTPAuthHeader...
66     d                 pr              *   extproc('xmlNanoHTTPAuthHeader')     const char *
67     d  ctx                            *   value                                void *
68
69     d xmlNanoHTTPRedir...
70     d                 pr              *   extproc('xmlNanoHTTPRedir')          const char *
71     d  ctx                            *   value                                void *
72
73     d xmlNanoHTTPContentLength...
74     d                 pr            10i 0 extproc('xmlNanoHTTPContentLength')
75     d  ctx                            *   value                                void *
76
77     d xmlNanoHTTPEncoding...
78     d                 pr              *   extproc('xmlNanoHTTPEncoding')       const char *
79     d  ctx                            *   value                                void *
80
81     d xmlNanoHTTPMimeType...
82     d                 pr              *   extproc('xmlNanoHTTPMimeType')       const char *
83     d  ctx                            *   value                                void *
84
85     d xmlNanoHTTPRead...
86     d                 pr            10i 0 extproc('xmlNanoHTTPRead')
87     d  ctx                            *   value                                void *
88     d  dest                           *   value                                void *
89     d  len                          10i 0 value
90
91      /if defined(LIBXML_OUTPUT_ENABLED)
92     d xmlNanoHTTPSave...
93     d                 pr            10i 0 extproc('xmlNanoHTTPSave')
94     d  ctxt                           *   value                                void *
95     d  filename                       *   value options(*string)               const char *
96      /endif                                                                    LIBXML_OUTPUT_ENABLD
97
98     d xmlNanoHTTPClose...
99     d                 pr                  extproc('xmlNanoHTTPClose')
100     d  ctx                            *   value                                void *
101
102      /endif                                                                    LIBXML_HTTP_ENABLED
103      /endif                                                                    NANO_HTTP_H__
104