MCPcopy Index your code
hub / github.com/webpy/webpy / __init__

Method __init__

web/webapi.py:84–89  ·  view source on GitHub ↗
(self, status, headers={}, data="")

Source from the content-addressed store, hash-verified

82
83class HTTPError(Exception):
84 def __init__(self, status, headers={}, data=""):
85 ctx.status = status
86 for k, v in headers.items():
87 header(k, v)
88 self.data = data
89 Exception.__init__(self, status)
90
91
92def _status_code(status, data=None, classname=None, docstring=None):

Callers

nothing calls this directly

Calls 3

headerFunction · 0.85
itemsMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected