| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/python2.6/site-packages/paste/ |
Upload File : |
Ñò
•ÊIc
@ s§ d Z d d k Z d d k Z d d k Z d d k l Z d d k l Z d Z d
e f d „ ƒ YZ
d d d „ Z d e f d „ ƒ YZ d „ Z
d d d „ Z d S( sæ
An application that proxies WSGI requests to a remote server.
TODO:
* Send ``Via`` header? It's not clear to me this is a Via in the
style of a typical proxy.
* Other headers or metadata? I put in X-Forwarded-For, but that's it.
* Signed data of non-HTTP keys? This would be for things like
REMOTE_USER.
* Something to indicate what the original URL was? The original host,
scheme, and base path.
* Rewriting ``Location`` headers? mod_proxy does this.
* Rewriting body? (Probably not on this one -- that can be done with
a different middleware that wraps this middleware)
* Example::
use = egg:Paste#proxy
address = http://server3:8680/exist/rest/db/orgs/sch/config/
allowed_request_methods = GET
iÿÿÿÿN( t httpexceptions( t aslists transfer-encodingt
connections
keep-alives proxy-authenticates proxy-authorizationt tet trailerst upgradet Proxyc B s e Z d d d „ Z d „ Z RS( c C s¿ | | _ t i | ƒ | _ | i d i ƒ | _ | i d | _ | i d | _ g } | D] } | o | | i ƒ q\ q\ ~ | _ g } | D] } | o | | i ƒ q‘ q‘ ~ | _ d S( Ni i i (
t addresst urlparset urlsplitt parsedt lowert schemet hostt patht allowed_request_methodst suppress_http_headers( t selfR R R t _[1]t xt _[2]( ( s/ /usr/lib/python2.6/site-packages/paste/proxy.pyt __init__6 s 5c C së | i o1 | d i ƒ | i j o t i d ƒ | | ƒ S| i d j o
t i } n: | i d j o
t i } n t d | i | i f ƒ ‚ | | i
ƒ } h } xx | i ƒ D]j \ } } | i d ƒ oN | d i ƒ i
d d ƒ } | d
j p | | i j o q³ n | | | <q³ q³ W| i
| d
<d | j o | d | d <n | i d
ƒ o | d
| d <n | i d ƒ o5 | d | d <t | d ƒ } | d i | ƒ } n d } t i | d ƒ }
| i o>