MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / Entry

Class Entry

lib/utils/har.py:64–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 extendedArguments=self.extendedArguments)
63
64class Entry(object):
65 def __init__(self, request, response, startTime, endTime, extendedArguments):
66 self.request = request
67 self.response = response
68 self.startTime = startTime or 0
69 self.endTime = endTime or 0
70 self.extendedArguments = extendedArguments
71
72 def toDict(self):
73 out = {
74 "request": self.request.toDict(),
75 "response": self.response.toDict(),
76 "cache": {},
77 "timings": {
78 "send": -1,
79 "wait": -1,
80 "receive": -1,
81 },
82 "time": int(1000 * (self.endTime - self.startTime)),
83 "startedDateTime": "%s%s" % (datetime.datetime.fromtimestamp(self.startTime).isoformat(), time.strftime("%z")) if self.startTime else None
84 }
85 out.update(self.extendedArguments)
86 return out
87
88class Request(object):
89 def __init__(self, method, path, httpVersion, headers, postBody=None, raw=None, comment=None):

Callers 1

toEntryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…