3 * This file is part of httpd.
5 * 02/17/1996 Michael Temari <Michael@TemWare.Com>
6 * 07/07/1996 Initial Release Michael Temari <Michael@TemWare.Com>
7 * 12/29/2002 Michael Temari <Michael@TemWare.Com>
11 #define INDEX_FILE_NAME "index.html"
13 #define HTTP_REQUEST_TYPE_SIMPLE 0
14 #define HTTP_REQUEST_TYPE_FULL 1
15 #define HTTP_REQUEST_TYPE_PROXY 2
17 #define HTTP_METHOD_UNKNOWN 0
18 #define HTTP_METHOD_OPTIONS 1
19 #define HTTP_METHOD_GET 2
20 #define HTTP_METHOD_HEAD 3
21 #define HTTP_METHOD_POST 4
22 #define HTTP_METHOD_PUT 5
23 #define HTTP_METHOD_PATCH 6
24 #define HTTP_METHOD_COPY 7
25 #define HTTP_METHOD_MOVE 8
26 #define HTTP_METHOD_DELETE 9
27 #define HTTP_METHOD_LINK 10
28 #define HTTP_METHOD_UNLINK 11
29 #define HTTP_METHOD_TRACE 12
30 #define HTTP_METHOD_WRAPPED 13
32 #define HTTP_STATUS_OK 200
33 #define HTTP_STATUS_CREATED 201
34 #define HTTP_STATUS_ACCEPTED 202
35 #define HTTP_STATUS_NO_CONTENT 204
36 #define HTTP_STATUS_MOVED_PERM 301
37 #define HTTP_STATUS_MOVED_TEMP 302
38 #define HTTP_STATUS_NOT_MODIFIED 304
39 #define HTTP_STATUS_USE_PROXY 305
40 #define HTTP_STATUS_BAD_REQUEST 400
41 #define HTTP_STATUS_UNAUTHORIZED 401
42 #define HTTP_STATUS_FORBIDDEN 403
43 #define HTTP_STATUS_NOT_FOUND 404
44 #define HTTP_STATUS_METHOD_NOT_ALLOWED 405
45 #define HTTP_STATUS_PROXY_AUTH_REQRD 407
46 #define HTTP_STATUS_LENGTH_REQUIRED 411
47 #define HTTP_STATUS_SERVER_ERROR 500
48 #define HTTP_STATUS_NOT_IMPLEMENTED 501
49 #define HTTP_STATUS_BAD_GATEWAY 502
50 #define HTTP_STATUS_SERVICE_UNAVAILABLE 503
51 #define HTTP_STATUS_GATEWAY_TIMEOUT 504
52 #define HTTP_STATUS_UNSUPPORTED_VERSION 505
98 _PROTOTYPE(int sendreply
, (struct http_reply
*rp
, struct http_request
*rq
));
102 _PROTOTYPE(int getrequest
, (struct http_request
*rq
));
106 _PROTOTYPE(int processrequest
, (struct http_request
*rq
, struct http_reply
*rp
));
110 _PROTOTYPE(int police
, (struct http_request
*rq
, struct http_reply
*rp
));
114 _PROTOTYPE(int cgiexec
, (struct http_request
*rq
, struct http_reply
*rp
));
118 _PROTOTYPE(void proxy
, (struct http_request
*rq
, struct http_reply
*rp
));