MCPcopy Index your code
hub / github.com/secdev/scapy / sr1

Method sr1

scapy/layers/http.py:841–851  ·  view source on GitHub ↗
(self, req, **kwargs)

Source from the content-addressed store, hash-verified

839 self._sockinfo = (host, port)
840
841 def sr1(self, req, **kwargs):
842 if self.verb:
843 print(conf.color_theme.opening(">> %s" % req.summary()))
844 resp = self.sock.sr1(
845 HTTP() / req,
846 verbose=0,
847 **kwargs,
848 )
849 if self.verb:
850 print(conf.color_theme.success("<< %s" % (resp and resp.summary())))
851 return resp
852
853 def request(
854 self,

Callers 1

requestMethod · 0.95

Calls 2

HTTPClass · 0.85
summaryMethod · 0.45

Tested by

no test coverage detected