Package proxy :: Module rhnConstants
[hide private]
[frames] | no frames]

Source Code for Module proxy.rhnConstants

 1  #!/usr/bin/python2 
 2  # 
 3  # Copyright (c) 2008--2020 Red Hat, Inc. 
 4  # 
 5  # This software is licensed to you under the GNU General Public License, 
 6  # version 2 (GPLv2). There is NO WARRANTY for this software, express or 
 7  # implied, including the implied warranties of MERCHANTABILITY or FITNESS 
 8  # FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2 
 9  # along with this software; if not, see 
10  # http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. 
11  # 
12  # Red Hat trademarks are not licensed under GPLv2. No permission is 
13  # granted to use or replicate Red Hat trademarks that are incorporated 
14  # in this software or its documentation. 
15  ## 
16  # rhnDefines.py - Constants used throughout the Spacewalk Proxy. 
17  #----------------------------------------------------------------------------- 
18  # 
19   
20  """Constants used by the Spacewalk Proxy""" 
21   
22  # HTTP Headers 
23   
24  HEADER_ACTUAL_URI = 'X-RHN-ActualURI' 
25  HEADER_EFFECTIVE_URI = 'X-RHN-EffectiveURI' 
26  HEADER_CHECKSUM = 'X-RHN-Checksum' 
27  HEADER_LOCATION = 'Location' 
28  HEADER_CONTENT_LENGTH = 'Content-Length' 
29  HEADER_RHN_REDIRECT = 'X-RHN-Redirect' 
30  HEADER_RHN_ORIG_LOC = 'X-RHN-OriginalLocation' 
31   
32  # HTTP Schemes 
33   
34  SCHEME_HTTP = 'http' 
35  SCHEME_HTTPS = 'https' 
36   
37  # These help us match URIs when kickstarting through a Proxy. 
38   
39  URI_PREFIX_KS = '/ty/' 
40  URI_PREFIX_KS_CHECKSUM = '/ty-cksm/' 
41   
42  # Component Constants 
43   
44  COMPONENT_BROKER = 'proxy.broker' 
45  COMPONENT_REDIRECT = 'proxy.redirect' 
46