Roxen.git/
server/
protocols/
http.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2000-01-03
2000-01-03 00:07:18 by Martin Nilsson <mani@lysator.liu.se>
470ed772bcfc8f0a0c10e3317cd4dc22777c71aa (
39
lines) (+
3
/-
36
)
[
Show
|
Annotate
]
Branch:
5.2
Use variables.h
Rev: server/protocols/http.pike:1.181
2:
// Modified by Francesco Chemolli to add throttling capabilities. // Copyright © 1996 - 1998, Idonex AB.
-
constant cvs_version = "$Id: http.pike,v 1.
180
1999
/
12
/
29
21
:
57
:
55
mast
Exp $";
+
constant cvs_version = "$Id: http.pike,v 1.
181
2000
/
01
/
03
00
:
07
:
18
nilsson
Exp $";
#define MAGIC_ERROR
48:
#include <roxen.h> #include <module.h>
+
#include <variables.h>
#undef QUERY #if constant(cpp)
1058:
return !!cache; }
-
constant errors =
-
([
-
200:"200 OK",
-
201:"201 URI follows",
-
202:"202 Accepted",
-
203:"203 Provisional Information",
-
204:"204 No Content",
-
206:"206 Partial Content", // Byte ranges
-
-
300:"300 Moved",
-
301:"301 Permanent Relocation",
-
302:"302 Temporary Relocation",
-
303:"303 Temporary Relocation method and URI",
-
304:"304 Not Modified",
-
-
400:"400 Bad Request",
-
401:"401 Access denied",
-
402:"402 Payment Required",
-
403:"403 Forbidden",
-
404:"404 No such file or directory.",
-
405:"405 Method not allowed",
-
407:"407 Proxy authorization needed",
-
408:"408 Request timeout",
-
409:"409 Conflict",
-
410:"410 This document is no more. It has gone to meet it's creator. It is gone. It will not be coming back. Give up. I promise. There is no such file or directory.",
-
416:"416 Requested range not satisfiable",
-
-
500:"500 Internal Server Error.",
-
501:"501 Not Implemented",
-
502:"502 Gateway Timeout",
-
503:"503 Service unavailable",
-
-
]);
-
-
+
void do_log() { MARK_FD("HTTP logging"); // fd can be closed here