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

Function wrapper

thirdparty/bottle/bottle.py:3559–3565  ·  view source on GitHub ↗
(*a, **ka)

Source from the content-addressed store, hash-verified

3557
3558 @functools.wraps(func)
3559 def wrapper(*a, **ka):
3560 user, password = request.auth or (None, None)
3561 if user is None or not check(user, password):
3562 err = HTTPError(401, text)
3563 err.add_header('WWW-Authenticate', 'Basic realm="%s"' % realm)
3564 return err
3565 return func(*a, **ka)
3566
3567 return wrapper
3568

Callers

nothing calls this directly

Calls 6

checkFunction · 0.85
templateFunction · 0.85
add_headerMethod · 0.80
HTTPErrorClass · 0.70
copyMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…