Debian Codegraph @

WWW/Library/Implementation/HTTP.h

raw
1 /*
2 * $LynxId: HTTP.h,v 1.14 2025/10/31 08:13:07 tom Exp $
3 *
4 * /Net/dxcern/userd/timbl/hypertext/WWW/Library/Implementation/HTTP.html
5 * HYPERTEXT TRANSFER PROTOCOL
6 */
7 #ifndef HTTP_H
8 #define HTTP_H
9
10 #include <HTAccess.h>
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 #ifdef GLOBALREF_IS_MACRO
16 extern GLOBALREF (HTProtocol, HTTP);
17 extern GLOBALREF (HTProtocol, HTTPS);
18
19 #else
20 GLOBALREF HTProtocol HTTP;
21 GLOBALREF HTProtocol HTTPS;
22 #endif /* GLOBALREF_IS_MACRO */
23
24 #define URL_GET_METHOD 1
25 #define URL_POST_METHOD 2
26 #define URL_MAIL_METHOD 3
27
28 #define UrlMethod(n) \
29 ((n) == URL_GET_METHOD ? "GET" \
30 : (n) == URL_POST_METHOD ? "POST" \
31 : (n) == URL_MAIL_METHOD ? "MAIL" : "?")
32
33 /*
34 * Special value for 'reloading' used to tell HTLoadDocument() that the
35 * user asked for a reload, versus Lynx doing a reload for other reasons.
36 */
37 #define REAL_RELOAD (TRUE + 1)
38
39 extern int ws_read_per_sec;
40 extern BOOLEAN reloading;
41 extern char *redirecting_url;
42 extern BOOL permanent_redirection;
43 extern BOOL redirect_post_content;
44
45 #ifdef __cplusplus
46 }
47 #endif
48 #endif /* HTTP_H */