Mercurial > hg > nginx-mail
comparison src/http/modules/perl/nginx.pm @ 665:0b460e61bdcd default tip
Merge with nginx 1.0.0.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 25 Apr 2011 04:22:17 +0400 |
parents | b4dcae568a2a |
children |
comparison
equal
deleted
inserted
replaced
572:06419a2298a9 | 665:0b460e61bdcd |
---|---|
12 OK | 12 OK |
13 DECLINED | 13 DECLINED |
14 | 14 |
15 HTTP_OK | 15 HTTP_OK |
16 HTTP_CREATED | 16 HTTP_CREATED |
17 HTTP_ACCEPTED | |
17 HTTP_NO_CONTENT | 18 HTTP_NO_CONTENT |
18 HTTP_PARTIAL_CONTENT | 19 HTTP_PARTIAL_CONTENT |
19 | 20 |
20 HTTP_MOVED_PERMANENTLY | 21 HTTP_MOVED_PERMANENTLY |
21 HTTP_MOVED_TEMPORARILY | 22 HTTP_MOVED_TEMPORARILY |
45 HTTP_SERVICE_UNAVAILABLE | 46 HTTP_SERVICE_UNAVAILABLE |
46 HTTP_GATEWAY_TIME_OUT | 47 HTTP_GATEWAY_TIME_OUT |
47 HTTP_INSUFFICIENT_STORAGE | 48 HTTP_INSUFFICIENT_STORAGE |
48 ); | 49 ); |
49 | 50 |
50 our $VERSION = '0.8.16'; | 51 our $VERSION = '1.0.0'; |
51 | 52 |
52 require XSLoader; | 53 require XSLoader; |
53 XSLoader::load('nginx', $VERSION); | 54 XSLoader::load('nginx', $VERSION); |
54 | 55 |
55 # Preloaded methods go here. | 56 # Preloaded methods go here. |
57 use constant OK => 0; | 58 use constant OK => 0; |
58 use constant DECLINED => -5; | 59 use constant DECLINED => -5; |
59 | 60 |
60 use constant HTTP_OK => 200; | 61 use constant HTTP_OK => 200; |
61 use constant HTTP_CREATED => 201; | 62 use constant HTTP_CREATED => 201; |
63 use constant HTTP_ACCEPTED => 202; | |
62 use constant HTTP_NO_CONTENT => 204; | 64 use constant HTTP_NO_CONTENT => 204; |
63 use constant HTTP_PARTIAL_CONTENT => 206; | 65 use constant HTTP_PARTIAL_CONTENT => 206; |
64 | 66 |
65 use constant HTTP_MOVED_PERMANENTLY => 301; | 67 use constant HTTP_MOVED_PERMANENTLY => 301; |
66 use constant HTTP_MOVED_TEMPORARILY => 302; | 68 use constant HTTP_MOVED_TEMPORARILY => 302; |