gusmobile

Unnamed repository; edit this file 'description' to name the repository.
git clone git://code.clttr.info/gusmobile.git
Log | Files | Refs | LICENSE

commit 47e40dcabd58ec0bf6347b1285d0a846af86f3aa
parent 2530369d280f883c4820a2c3bb7fd61785bc4e7d
Author: Natalie Pendragon <natpen@natpen.net>
Date:   Thu, 11 Jun 2020 06:27:28 -0400

Return num_bytes

Diffstat:
Mgusmobile/client.py | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gusmobile/client.py b/gusmobile/client.py @@ -47,7 +47,7 @@ class Response: prompt = None def __init__( - self, content=None, content_type=None, charset=None, lang=None, url=None, status=None, status_meta=None, prompt=None + self, content=None, content_type=None, charset=None, lang=None, url=None, status=None, status_meta=None, prompt=None, num_bytes=None ): self.content = content self.content_type = content_type @@ -57,6 +57,7 @@ class Response: self.status = status self.status_meta = status_meta self.prompt = prompt + self.num_bytes = num_bytes def fetch(raw_url): @@ -181,6 +182,7 @@ def fetch(raw_url): content_type=mime, charset=charset, lang=lang, + num_bytes=len(body), url=url.geturl(), status=status, )