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

Function _header_line

scapy/layers/http.py:239–242  ·  view source on GitHub ↗

Creates a HTTP header line

(name, val)

Source from the content-addressed store, hash-verified

237
238
239def _header_line(name, val):
240 """Creates a HTTP header line"""
241 # Python 3.4 doesn't support % on bytes
242 return bytes_encode(name) + b": " + bytes_encode(val)
243
244
245def _parse_headers(s):

Callers 1

self_buildMethod · 0.85

Calls 1

bytes_encodeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…