MCPcopy Create free account
hub / github.com/secdev/scapy / _get_encodings

Method _get_encodings

scapy/layers/http.py:300–313  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

298
299 # https://developer.mozilla.org/fr/docs/Web/HTTP/Headers/Transfer-Encoding
300 def _get_encodings(self):
301 encodings = []
302 if isinstance(self, HTTPResponse):
303 if self.Transfer_Encoding:
304 encodings += [
305 plain_str(x).strip().lower()
306 for x in plain_str(self.Transfer_Encoding).split(",")
307 ]
308 if self.Content_Encoding:
309 encodings += [
310 plain_str(x).strip().lower()
311 for x in plain_str(self.Content_Encoding).split(",")
312 ]
313 return encodings
314
315 def hashret(self):
316 return b"HTTP1"

Callers 4

post_dissectMethod · 0.95
post_buildMethod · 0.95
self_buildMethod · 0.95
tcp_reassembleMethod · 0.80

Calls 1

plain_strFunction · 0.90

Tested by

no test coverage detected