Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/osrg/gobgp
/ _read_body
Method
_read_body
tools/grpc/python/flowspec_mitigation.py:289–291 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
287
self.wfile.write(body)
288
289
def
_read_body(self):
290
length = int(self.headers.get(
"Content-Length"
, 0))
291
return
json.loads(self.rfile.read(length))
if
length
else
{}
292
293
def
do_POST(self):
294
if
self.path ==
"/mitigate"
:
Callers
1
do_POST
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected