moonraker: remove references to Tornado's http client
Add the http client wrapper to core components. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
43b19d8a83
commit
0abb831ea0
|
@ -18,7 +18,6 @@ import signal
|
|||
import confighelper
|
||||
import utils
|
||||
import asyncio
|
||||
from tornado.httpclient import AsyncHTTPClient
|
||||
from eventloop import EventLoop
|
||||
from app import MoonrakerApp
|
||||
from klippy_connection import KlippyConnection
|
||||
|
@ -48,16 +47,11 @@ API_VERSION = (1, 0, 1)
|
|||
CORE_COMPONENTS = [
|
||||
'dbus_manager', 'database', 'file_manager', 'klippy_apis',
|
||||
'machine', 'data_store', 'shell_command', 'proc_stats',
|
||||
'job_state', 'job_queue'
|
||||
'job_state', 'job_queue', 'http_client'
|
||||
]
|
||||
|
||||
SENTINEL = SentinelClass.get_instance()
|
||||
|
||||
# Configure the http client to use the pycurl based implementation
|
||||
AsyncHTTPClient.configure(
|
||||
"tornado.curl_httpclient.CurlAsyncHTTPClient",
|
||||
defaults=dict(user_agent="Moonraker"))
|
||||
|
||||
class Server:
|
||||
error = ServerError
|
||||
def __init__(self,
|
||||
|
|
Loading…
Reference in New Issue