HSL 2.0 Framework
Description of the framework
|
HTTP Requests. More
..Public Member Functions | |
def | __init__ (self) |
Constructor. More... | |
def | get_method (self) |
Returns the retrieval method. More... | |
def | get_path (self) |
Returns the complete path of the query without the query part. More... | |
def | get_fullpath (self) |
Returns the complete path of the query including the query part. More... | |
def | get_http_version (self) |
Returns the HTTP version of the retrieval. More... | |
def | get_query (self) |
Returns all parameters from the query part of the query in the form of a dictionary. More... | |
def | get_query_string (self) |
Returns the entire query string of the query. More... | |
def | get_header (self, key) |
Returns the value of a header entry. More... | |
def | get_headers (self) |
Returns the headers transmitted by the remote peer as dictionary. More... | |
def | get_body (self) |
Returns the body of the HTTP request. More... | |
Private Member Functions | |
def | _set_info (self, method, path, version) |
Sets the HTTP information | |
def | _set_header (self, header) |
Sets the headers | |
def | _set_body (self, body) |
Sets the request body | |
def | _clear (self) |
Removes all references | |
HTTP requests
This class encapsulates all parameters that the HTTP request has left with the server. For more information about the flow and use of this class, see HTTP Server
def hsl20_4_http_server.hsl20_4_http_server.Request.__init__ | ( | self | ) |
Constructor
def hsl20_4_http_server.hsl20_4_http_server.Request.get_body | ( | self | ) |
Returns the body of the HTTP request
def hsl20_4_http_server.hsl20_4_http_server.Request.get_fullpath | ( | self | ) |
Returns the complete path of the query including the query part
def hsl20_4_http_server.hsl20_4_http_server.Request.get_header | ( | self, | |
key | |||
) |
Returns the value of a header entry
key | string Key |
def hsl20_4_http_server.hsl20_4_http_server.Request.get_headers | ( | self | ) |
Returns the headers transmitted by the remote peer as dictionary
def hsl20_4_http_server.hsl20_4_http_server.Request.get_http_version | ( | self | ) |
Returns the HTTP version of the retrieval
def hsl20_4_http_server.hsl20_4_http_server.Request.get_method | ( | self | ) |
Returns the retrieval method
def hsl20_4_http_server.hsl20_4_http_server.Request.get_path | ( | self | ) |
Returns the complete path of the query without the query part
def hsl20_4_http_server.hsl20_4_http_server.Request.get_query | ( | self | ) |
Returns all parameters from the query part of the query in the form of a dictionary
The values are already decoded
def hsl20_4_http_server.hsl20_4_http_server.Request.get_query_string | ( | self | ) |
Returns the entire query string of the query