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

Method send_response

web/httpserver.py:189–191  ·  view source on GitHub ↗
(self, status, msg="")

Source from the content-addressed store, hash-verified

187 self.directory = os.getcwd()
188
189 def send_response(self, status, msg=""):
190 # the int(status) call is needed because in Py3 status is an enum.IntEnum and we need the integer behind
191 self.status = str(int(status)) + " " + msg
192
193 def send_header(self, name, value):
194 self.headers.append((name, value))

Callers 2

__iter__Method · 0.95
wsgi_write_dataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected