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

Method request_body

pywebio/platform/adaptor/http.py:54–60  ·  view source on GitHub ↗

返回当前请求的body数据 Returns the data of the current request body :return: bytes/bytearray

(self)

Source from the content-addressed store, hash-verified

52 pass
53
54 def request_body(self) -> bytes:
55 """返回当前请求的body数据
56 Returns the data of the current request body
57
58 :return: bytes/bytearray
59 """
60 return b''
61
62 def set_header(self, name, value):
63 """为当前响应设置header

Callers 1

read_event_dataMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected