MCPcopy Create free account
hub / github.com/HelloZeroNet/ZeroNet / isWebSocketRequest

Method isWebSocketRequest

src/Ui/UiRequest.py:178–179  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

176 return self.env["PATH_INFO"].startswith("http://") or (self.server.allow_trans_proxy and self.server.site_manager.isDomain(self.env.get("HTTP_HOST")))
177
178 def isWebSocketRequest(self):
179 return self.env.get("HTTP_UPGRADE") == "websocket"
180
181 def isAjaxRequest(self):
182 return self.env.get("HTTP_X_REQUESTED_WITH") == "XMLHttpRequest"

Callers 1

actionWrapperMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected