locust 2.32.9.dev7__py3-none-any.whl → 2.32.9.dev8__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- locust/_version.py +2 -2
- locust/contrib/fasthttp.py +11 -0
- {locust-2.32.9.dev7.dist-info → locust-2.32.9.dev8.dist-info}/METADATA +1 -1
- {locust-2.32.9.dev7.dist-info → locust-2.32.9.dev8.dist-info}/RECORD +7 -7
- {locust-2.32.9.dev7.dist-info → locust-2.32.9.dev8.dist-info}/LICENSE +0 -0
- {locust-2.32.9.dev7.dist-info → locust-2.32.9.dev8.dist-info}/WHEEL +0 -0
- {locust-2.32.9.dev7.dist-info → locust-2.32.9.dev8.dist-info}/entry_points.txt +0 -0
locust/_version.py
CHANGED
@@ -14,7 +14,7 @@ __version_tuple__: VERSION_TUPLE
|
|
14
14
|
version_tuple: VERSION_TUPLE
|
15
15
|
|
16
16
|
|
17
|
-
__version__ = "2.32.9.
|
17
|
+
__version__ = "2.32.9.dev8"
|
18
18
|
version = __version__
|
19
|
-
__version_tuple__ = (2, 32, 9, "
|
19
|
+
__version_tuple__ = (2, 32, 9, "dev8")
|
20
20
|
version_tuple = __version_tuple__
|
locust/contrib/fasthttp.py
CHANGED
@@ -298,6 +298,17 @@ class FastHttpSession:
|
|
298
298
|
"""Sends a GET request"""
|
299
299
|
return self.request("GET", url, **kwargs)
|
300
300
|
|
301
|
+
def iter_lines(self, url: str, method: str = "GET", **kwargs):
|
302
|
+
"""Sends a iter_lines request"""
|
303
|
+
response = self.request(method, url, stream=True, **kwargs)
|
304
|
+
response.raise_for_status()
|
305
|
+
buffer = ""
|
306
|
+
for chunk in response.iter_content(chunk_size=1024, decode_content=True):
|
307
|
+
buffer += chunk.decode("utf-8")
|
308
|
+
while "\n" in buffer:
|
309
|
+
line, buffer = buffer.split("\n", 1)
|
310
|
+
yield line
|
311
|
+
|
301
312
|
def head(self, url: str, **kwargs: Unpack[RESTKwargs]) -> ResponseContextManager | FastResponse:
|
302
313
|
"""Sends a HEAD request"""
|
303
314
|
return self.request("HEAD", url, **kwargs)
|
@@ -1,10 +1,10 @@
|
|
1
1
|
locust/__init__.py,sha256=aWeuBPUxONjwNm1xp4v8L4BO14SuYLjscIiwJVX1Ui4,1746
|
2
2
|
locust/__main__.py,sha256=vBQ82334kX06ImDbFlPFgiBRiLIinwNk3z8Khs6hd74,31
|
3
|
-
locust/_version.py,sha256=
|
3
|
+
locust/_version.py,sha256=DgnqKbPefgfC5EVCMpaYvaUmuqMaUiRhnWSl8D9dDdg,458
|
4
4
|
locust/argument_parser.py,sha256=7H95Bd9f9T3LisQDG6o_7XM1iG-ibpKpmhcPDHRW570,32475
|
5
5
|
locust/clients.py,sha256=XK-xabq2_5GZKMEjebDobvEjeBTtCs8h2EelL7s68Qs,19346
|
6
6
|
locust/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
|
-
locust/contrib/fasthttp.py,sha256=
|
7
|
+
locust/contrib/fasthttp.py,sha256=neYlLR-hdmqCN_htqK1IENuCQaOT4exYJ160FnfSSCs,29245
|
8
8
|
locust/contrib/mongodb.py,sha256=1seUYgJOaNKwybYOP9PUEVhgl8hGy-G33f8lFj3R8W8,1246
|
9
9
|
locust/contrib/postgres.py,sha256=OuMWnGYN10K65Tq2axVESEW25Y0g5gJb0rK90jkcCJg,1230
|
10
10
|
locust/debug.py,sha256=7CCm8bIg44uGH2wqBlo1rXBzV2VzwPicLxLewz8r5CQ,5099
|
@@ -51,8 +51,8 @@ locust/webui/dist/auth.html,sha256=3oyTf_gQkVvdO2WHkjQm-x24iusdhgHo2-l50XvmF4g,6
|
|
51
51
|
locust/webui/dist/index.html,sha256=1cDsi3fre0ZDOftd58U2KGHALAhfXYaXQFpHufvUzO8,654
|
52
52
|
locust/webui/dist/report.html,sha256=j-a-asUn3fP0Mz7-XFWpjqwjIZSaYWJpn8a2nk5wB0s,1474613
|
53
53
|
poetry.lock,sha256=jpNQ61wRdb0aYe9pOanLK9xtROAx-nx7DVB_xlGqHeQ,214415
|
54
|
-
locust-2.32.9.
|
55
|
-
locust-2.32.9.
|
56
|
-
locust-2.32.9.
|
57
|
-
locust-2.32.9.
|
58
|
-
locust-2.32.9.
|
54
|
+
locust-2.32.9.dev8.dist-info/LICENSE,sha256=5hnz-Vpj0Z3kSCQl0LzV2hT1TLc4LHcbpBp3Cy-EuyM,1110
|
55
|
+
locust-2.32.9.dev8.dist-info/METADATA,sha256=VrYgIgzIrAXT6s_OzPmAiHVy0fqe2e4fQjb1zxtuD60,9989
|
56
|
+
locust-2.32.9.dev8.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
57
|
+
locust-2.32.9.dev8.dist-info/entry_points.txt,sha256=RhIxlLwU_Ae_WjimS5COUDLagdCh6IOMyLtgaQxNmlM,43
|
58
|
+
locust-2.32.9.dev8.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|