aboutsummaryrefslogtreecommitdiffstats
path: root/test/mitmproxy/data/test_flow_export/locust_task_get.py
blob: 03821cd862be94671d260fa344690f25f335bc62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
    @task()
    def path(self):
        url = self.locust.host + '/path'

        headers = {
            'header': 'qvalue',
            'content-length': '7',
        }

        params = {
            'a': ['foo', 'bar'],
            'b': 'baz',
        }

        self.response = self.client.request(
            method='GET',
            url=url,
            headers=headers,
            params=params,
        )