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

Method SERVE

scapy/layers/http.py:1255–1263  ·  view source on GitHub ↗
(self, pkt=None)

Source from the content-addressed store, hash-verified

1253
1254 @ATMT.state()
1255 def SERVE(self, pkt=None):
1256 if pkt is None:
1257 return
1258 answer = self.answer(pkt)
1259 if answer:
1260 self.send(answer)
1261 self.vprint("%s -> %s" % (pkt.summary(), answer.summary()))
1262 else:
1263 self.vprint("%s" % pkt.summary())
1264
1265 @ATMT.eof(SERVE)
1266 def serve_eof(self):

Callers 3

should_authenticateMethod · 0.95
AUTHMethod · 0.95
new_requestMethod · 0.95

Calls 4

answerMethod · 0.95
sendMethod · 0.95
vprintMethod · 0.95
summaryMethod · 0.45

Tested by

no test coverage detected