MCPcopy
hub / github.com/locustio/locust / context

Method context

locust/user/users.py:231–236  ·  view source on GitHub ↗

Adds the returned value (a dict) to the context for :ref:`request event `. Override this in your User class to customize the context.

(self)

Source from the content-addressed store, hash-verified

229 return self._greenlet
230
231 def context(self) -> dict:
232 """
233 Adds the returned value (a dict) to the context for :ref:`request event <request_context>`.
234 Override this in your User class to customize the context.
235 """
236 return {}
237
238 @classmethod
239 def json(cls):

Callers 2

requestMethod · 0.45
requestMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected