| 1 | # -*- Mode: Perl; indent-tabs-mode: nil; -*- | ||
| 2 | |||
| 3 | package Wombat::Globals; | ||
| 4 | |||
| 5 | =pod | ||
| 6 | |||
| 7 | =head1 NAME | ||
| 8 | |||
| 9 | Wombat::Globals - global constants | ||
| 10 | |||
| 11 | =head1 SYNOPSIS | ||
| 12 | |||
| 13 | =head1 DESCRIPTION | ||
| 14 | |||
| 15 | This package contains constants that are global to Wombat. | ||
| 16 | |||
| 17 | =head1 CONSTANTS | ||
| 18 | |||
| 19 | =over | ||
| 20 | |||
| 21 | =item DEBUG | ||
| 22 | |||
| 23 | A flag determining whether messages of level 'DEBUG' are logged or not. | ||
| 24 | |||
| 25 | =cut | ||
| 26 | |||
| 27 | use constant DEBUG => 1; | ||
| 28 | |||
| 29 | =pod | ||
| 30 | |||
| 31 | =item FORM_TYPE_URLENCODED | ||
| 32 | |||
| 33 | The content type used for HTTP form data | ||
| 34 | |||
| 35 | =cut | ||
| 36 | |||
| 37 | use constant FORM_TYPE_URLENCODED => 'application/x-www-form-urlencoded'; | ||
| 38 | |||
| 39 | =pod | ||
| 40 | |||
| 41 | =item SERVER_INFO | ||
| 42 | |||
| 43 | The server name and version | ||
| 44 | |||
| 45 | =cut | ||
| 46 | |||
| 47 | use constant SERVER_INFO => join '/', 'Wombat', $Wombat::VERSION; | ||
| 48 | |||
| 49 | =pod | ||
| 50 | |||
| 51 | =item SESSION_COOKIE_NAME | ||
| 52 | |||
| 53 | The name of the cookie used to transmit the session id between the | ||
| 54 | client and the server | ||
| 55 | |||
| 56 | =cut | ||
| 57 | |||
| 58 | use constant SESSION_COOKIE_NAME => 'PSESSIONID'; | ||
| 59 | |||
| 60 | =pod | ||
| 61 | |||
| 62 | =item SESSION_PARAMETER_NAME | ||
| 63 | |||
| 64 | The name of the parameter used to transmit the session id between the | ||
| 65 | client and the server | ||
| 66 | |||
| 67 | =cut | ||
| 68 | |||
| 69 | use constant SESSION_PARAMETER_NAME => 'psessionid'; | ||
| 70 | |||
| 71 | =pod | ||
| 72 | |||
| 73 | =back | ||
| 74 | |||
| 75 | =cut | ||
| 76 | |||
| 77 | 1; | ||
| 78 | __END__ |