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

Function decorator

thirdparty/bottle/bottle.py:3556–3567  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

3554 TODO: Add route(check_auth=...) parameter. """
3555
3556 def decorator(func):
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
3569 return decorator
3570

Callers 2

routeMethod · 0.85
errorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…