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

Method should_authenticate

scapy/layers/http.py:1119–1123  ·  view source on GitHub ↗
(self, pkt)

Source from the content-addressed store, hash-verified

1117
1118 @ATMT.receive_condition(BEGIN, prio=1)
1119 def should_authenticate(self, pkt):
1120 if self.authmethod == HTTP_AUTH_MECHS.NONE.value:
1121 raise self.SERVE(pkt)
1122 else:
1123 raise self.AUTH(pkt)
1124
1125 @ATMT.state()
1126 def AUTH(self, pkt=None):

Callers

nothing calls this directly

Calls 2

SERVEMethod · 0.95
AUTHMethod · 0.95

Tested by

no test coverage detected