/usr/lib/python2.6/site-packages/supervisor/medusa
Edit: /usr/lib/python2.6/site-packages/supervisor/medusa/virtual_handler.pyc (3164B)
Ñò
FATc @ sl d d k Z d d k Z d d k Z e i d e i ƒ Z e i Z d d d „ ƒ YZ d d d „ ƒ YZ d S( iÿÿÿÿNs Host: ([^:/]+).*t virtual_handlerc B s2 e Z d Z d „ Z d „ Z d „ Z d „ Z RS( sh HTTP request handler for an HTTP/1.0-style virtual host. Each
Virtual host must have a different IPc C sR | | _ | | _ y t i | ƒ | _ Wn# t i j
o t d | ‚ n Xd S( Ns? Virtual Hostname %s does not appear to be registered in the DNS( t handlert hostnamet sockett
gethostbynamet ipt errort
ValueError( t selfR R ( ( sE /usr/lib/python2.6/site-packages/supervisor/medusa/virtual_handler.pyt __init__ s c C s' | i i d | i j o d Sd Sd S( Ni i ( t channelt addrR ( R t request( ( sE /usr/lib/python2.6/site-packages/supervisor/medusa/virtual_handler.pyt match s c C s | i i | ƒ S( N( R t handle_request( R R ( ( sE /usr/lib/python2.6/site-packages/supervisor/medusa/virtual_handler.pyR s c C s d | i S( Ns
( R ( R ( ( sE /usr/lib/python2.6/site-packages/supervisor/medusa/virtual_handler.pyt __repr__! s ( t __name__t
__module__t __doc__R R
R R ( ( ( sE /usr/lib/python2.6/site-packages/supervisor/medusa/virtual_handler.pyR s
t virtual_handler_with_hostc B s2 e Z d Z d „ Z d „ Z d „ Z d „ Z RS( s
HTTP request handler for HTTP/1.1-style virtual hosts. This
matches by checking the value of the 'Host' header in the request.
You actually don't _have_ to support HTTP/1.1 to use this, since
many browsers now send the 'Host' header. This is a Good Thing.c C s | | _ | | _ d S( N( R R ( R R R ( ( sE /usr/lib/python2.6/site-packages/supervisor/medusa/virtual_handler.pyR , s c C s/ t t | i ƒ } | | i j o d Sd Sd S( Ni i ( t
get_headert HOSTt headerR ( R R t host( ( sE /usr/lib/python2.6/site-packages/supervisor/medusa/virtual_handler.pyR
0 s c C s | i i | ƒ S( N( R R ( R R ( ( sE /usr/lib/python2.6/site-packages/supervisor/medusa/virtual_handler.pyR 7 s c C s d | i S( Ns ( R ( R ( ( sE /usr/lib/python2.6/site-packages/supervisor/medusa/virtual_handler.pyR : s ( R R R R R
R R ( ( ( sE /usr/lib/python2.6/site-packages/supervisor/medusa/virtual_handler.pyR % s
( ( ( R t default_handlert ret compilet
IGNORECASER R R R ( ( ( sE /usr/lib/python2.6/site-packages/supervisor/medusa/virtual_handler.pyt s