HSL 2.0 framework
Description of the framework
|
HTTP Client Response. More
..Public Member Functions | |
def | __init__ (self, stream) |
Constructor. More... | |
def | get_http_version (self) |
Returns the version string of the request (e.g. HTTP/1.1) More... | |
def | get_status_code (self) |
Returns the HTTP status code of the request (e.g.: 200) More... | |
def | get_status_text (self) |
Returns the HTTP status text of the request (e.g.: OK) More... | |
def | get_headers (self) |
Returns the headers transmitted by the remote terminal as a dictionary. More... | |
def | get_header (self, key) |
Returns the value of a header entry. More... | |
def | get_body (self) |
Returns the body part of the response. More... | |
HTTP client response
In this class all parameters are encapsulated, which the remote station has answered to the request
def hsl20_4_http_client.hsl20_4_http_client.Response.__init__ | ( | self, | |
stream | |||
) |
Constructor
def hsl20_4_http_client.hsl20_4_http_client.Response.get_body | ( | self | ) |
Returns the body part of the response
def hsl20_4_http_client.hsl20_4_http_client.Response.get_header | ( | self, | |
key | |||
) |
Returns the value of a header entry
key | string Key |
def hsl20_4_http_client.hsl20_4_http_client.Response.get_headers | ( | self | ) |
Returns the headers transmitted by the remote terminal as a dictionary
def hsl20_4_http_client.hsl20_4_http_client.Response.get_http_version | ( | self | ) |
Returns the version string of the request (e.g.: HTTP/1.1)
def hsl20_4_http_client.hsl20_4_http_client.Response.get_status_code | ( | self | ) |
Returns the HTTP status code of the request (e.g.: 200)
def hsl20_4_http_client.hsl20_4_http_client.Response.get_status_text | ( | self | ) |
Returns the HTTP status text of the request (e.g.: OK)