caviar.network.http¶
HTTP module.
-
class
caviar.network.http.
HTTPResource
(path, protocol, host, port, auth=None, headers=None)¶ Bases:
object
An 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:
object
HTTP response attributes.
Parameters: