MCPcopy Create free account
hub / github.com/boy-hack/hack-requests / _send_output

Method _send_output

HackRequests/HackRequests.py:139–145  ·  view source on GitHub ↗
(self, oldfun, con, log)

Source from the content-addressed store, hash-verified

137 return scheme, hostname, int(port), path
138
139 def _send_output(self, oldfun, con, log):
140 def _send_output_hook(*args, **kwargs):
141 log['request'] = b"\r\n".join(con._buffer).decode('utf-8')
142 oldfun(*args, **kwargs)
143 con._send_output = oldfun
144
145 return _send_output_hook
146
147 def httpraw(self, raw: str, **kwargs):
148 raw = raw.strip()

Callers 2

httprawMethod · 0.95
httpMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected