Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Public Member Functions | |
def | __init__ |
def | set_debuglevel |
def | connect |
def | close |
def | send |
def | putrequest |
def | putheader |
def | endheaders |
def | request |
def | getresponse |
Data Fields | |
sock | |
host | |
port | |
debuglevel | |
Static Public Attributes | |
response_class = HTTPResponse | |
default_port = HTTP_PORT | |
int | auto_open = 1 |
int | debuglevel = 0 |
Definition at line 329 of file httplib.py.
def __init__ | ( | self, | |
host, | |||
port = None |
|||
) |
Definition at line 339 of file httplib.py.
def close | ( | self) |
Close the connection to the HTTP server.
Definition at line 381 of file httplib.py.
References HTTPConnection.__response, HTTPConnection.__state, FTP.sock, and HTTPConnection.sock.
def connect | ( | self) |
Connect to the host and port specified in __init__.
Definition at line 360 of file httplib.py.
References HTTPResponse.debuglevel, HTTPConnection.debuglevel, FTP.host, HTTPConnection.host, FTP.port, HTTPConnection.port, FTP.sock, HTTPConnection.sock, and socket.socket().
def endheaders | ( | self) |
Indicate that the last header line has been sent to the server.
Definition at line 523 of file httplib.py.
References HTTPConnection.__state, HTTPConnection.send(), dispatcher_with_send.send(), file_wrapper.send(), and HTTP.send.
def getresponse | ( | self) |
Definition at line 564 of file httplib.py.
References HTTPConnection.__response, HTTPConnection.__state, Chunk.close(), openrsrc.close(), _Hqxcoderengine.close(), FileInput.close(), _Rlecoderengine.close(), HTTPResponse.close(), BinHex.close(), GzipFile.close(), _Hqxdecoderengine.close(), Aifc_read.close(), _Rledecoderengine.close(), HTTPConnection.close(), HexBin.close(), file_wrapper.close(), FTP.close(), HTTPResponse.debuglevel, HTTPConnection.debuglevel, HTTPConnection.response_class, FTP.sock, and HTTPConnection.sock.
def putheader | ( | self, | |
header, | |||
value | |||
) |
Send a request header line to the server. For example: h.putheader('Accept', 'text/html')
Definition at line 512 of file httplib.py.
References HTTPConnection.__state, HTTPConnection.send(), dispatcher_with_send.send(), file_wrapper.send(), and HTTP.send.
def putrequest | ( | self, | |
method, | |||
url, | |||
skip_host = 0 |
|||
) |
Send a request to the server. `method' specifies an HTTP request method, e.g. 'GET'. `url' specifies the object being requested, e.g. '/index.html'.
Definition at line 413 of file httplib.py.
References HTTPConnection.__response, HTTPConnection.__state, HTTPConnection._http_vsn, HTTPConnection._http_vsn_str, HTTPConnection.auto_open, FTP.host, HTTPConnection.host, FTP.port, HTTPConnection.port, HTTPConnection.putheader(), HTTPConnection.send(), dispatcher_with_send.send(), file_wrapper.send(), HTTP.send, and urlparse.urlsplit().
def request | ( | self, | |
method, | |||
url, | |||
body = None , |
|||
headers = {} |
|||
) |
Send a complete request to the server.
Definition at line 533 of file httplib.py.
References HTTPConnection._send_request(), HTTPConnection.auto_open, HTTPConnection.endheaders(), HTTP.endheaders, HTTPConnection.putheader(), HTTPConnection.putrequest(), HTTP.putrequest, HTTPConnection.send(), dispatcher_with_send.send(), file_wrapper.send(), HTTP.send, and locale.str().
def send | ( | self, | |
str | |||
) |
Send `str' to the server.
Definition at line 391 of file httplib.py.
References HTTPConnection.auto_open, Chunk.close(), openrsrc.close(), _Hqxcoderengine.close(), FileInput.close(), _Rlecoderengine.close(), HTTPResponse.close(), BinHex.close(), GzipFile.close(), _Hqxdecoderengine.close(), Aifc_read.close(), _Rledecoderengine.close(), HTTPConnection.close(), HexBin.close(), file_wrapper.close(), FTP.close(), FTP.connect(), HTTPConnection.connect(), HTTPResponse.debuglevel, HTTPConnection.debuglevel, FTP.sock, and HTTPConnection.sock.
def set_debuglevel | ( | self, | |
level | |||
) |
Definition at line 357 of file httplib.py.
|
static |
Definition at line 336 of file httplib.py.
|
static |
Definition at line 337 of file httplib.py.
debuglevel |
Definition at line 358 of file httplib.py.
|
static |
Definition at line 335 of file httplib.py.
host |
Definition at line 354 of file httplib.py.
port |
Definition at line 355 of file httplib.py.
|
static |
Definition at line 334 of file httplib.py.
sock |
Definition at line 340 of file httplib.py.