MCPcopy Create free account
hub / github.com/sensepost/objection / api_thread

Function api_thread

objection/console/cli.py:191–193  ·  view source on GitHub ↗

Small method to run Flask non-blocking

()

Source from the content-addressed store, hash-verified

189 # start the api server
190 if enable_api:
191 def api_thread():
192 """ Small method to run Flask non-blocking """
193 api_state.start(app_state.api_host, app_state.api_port)
194
195 click.secho(f'Starting API server on {app_state.api_host}:{app_state.api_port}', fg='yellow', bold=True)
196 thread = threading.Thread(target=api_thread)

Callers

nothing calls this directly

Calls 1

startMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…