MCPcopy Create free account
hub / github.com/pywebio/PyWebIO / set_header

Method set_header

pywebio/platform/adaptor/http.py:62–65  ·  view source on GitHub ↗

为当前响应设置header Set a header for the current response

(self, name, value)

Source from the content-addressed store, hash-verified

60 return b''
61
62 def set_header(self, name, value):
63 """为当前响应设置header
64 Set a header for the current response"""
65 pass
66
67 def set_status(self, status):
68 """为当前响应设置http status

Callers 1

_process_corsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected