caviar.network.http¶
HTTP module.
-
class
caviar.network.http.HTTPResource(path, protocol, host, port, auth=None, headers=None)¶ Bases:
objectAn HTTP resource.
Parameters: -
request(method_name)¶
-
push(name)¶
-
ref(url)¶
-
-
class
caviar.network.http.HTTPRequest(method, protocol, host, port, path, auth, headers)¶ Bases:
object-
method¶
-
path¶
-
query_param(name, value)¶
-
data_param(name, value)¶
-
file_param(name, value)¶
-
perform()¶
-
-
class
caviar.network.http.HTTPResponse(status_code, headers, content)¶ Bases:
objectHTTP response attributes.
Parameters: