MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / parse_header

Method parse_header

thirdparty/bottle/bottle.py:1491–1502  ·  view source on GitHub ↗
(cls, s)

Source from the content-addressed store, hash-verified

1489
1490 @classmethod
1491 def parse_header(cls, s):
1492 htype, rest = s.split(':', 1)
1493 opt_iter = cls._patt.finditer(rest)
1494 hvalue = next(opt_iter).group(1).strip()
1495 dct = {}
1496 for it in opt_iter:
1497 k = it.group(1).strip()
1498 v = it.group(3)
1499 if v is not None:
1500 v = v.strip('"')
1501 dct[k.lower()] = v
1502 return MPHeader(name=htype, value=hvalue, options=dct)
1503
1504 @classmethod
1505 def iter_items(cls, src, markup, max_read):

Callers 1

readMethod · 0.95

Calls 1

MPHeaderClass · 0.85

Tested by

no test coverage detected