我正在尝试使用 Postman 发送 HTTP/2 请求。然而,当我的服务器收到请求时,它给出了一个错误:
handle: <Handle _SelectorSocketTransport._read_ready()>
Traceback (most recent call last):
File "/usr/lib64/python3.6/asyncio/events.py", line 145, in _run
self._callback(*self._args)
File "/usr/lib64/python3.6/asyncio/selector_events.py", line 721, in _read_ready
self._protocol.data_received(data)
File "/home/deesharm/jetconf/jetconf/jetconf/rest_server.py", line 76, in data_received
events = self.conn.receive_data(data)
File "/home/deesharm/jetconf/venv/lib/python3.6/site-packages/h2/connection.py", line 1448, in receive_data
.. versionchanged:: 2.0.0
File "/home/deesharm/jetconf/venv/lib/python3.6/site-packages/h2/frame_buffer.py", line 52, in add_data
raise ProtocolError("Invalid HTTP/2 preamble.")
h2.exceptions.ProtocolError: Invalid HTTP/2 preamble.
Postman 支持 HTTP/2 吗?
目前,Postman 不支持 HTTP/2。
https://github.com/postmanlabs/postman-app-support/issues/2701
我创建了一个 GUI 工具,可用于发送 HTTP 请求,并支持 HTTP/2 和 HTTP/3。它与现有的 Postman 集合和环境完全兼容。