body
Module¶
Request and response payload.
-
class
wpull.body.
Body
(file=None, directory=None, hint='lone_body')[source]¶ Bases:
object
Represents the document/payload of a request or response.
This class is a wrapper around a file object. Methods are forwarded to the underlying file object.
-
file
¶ file
The file object.
Parameters: - file (file, optional) – Use the given file as the file object.
- directory (str) – If file is not given, use directory for a new temporary file.
- hint (str) – If file is not given, use hint as a filename infix.
-