TU-Wien-dataLAB / Grader-Labextension

BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

Look into `curl_httpclient` for server extension for proxies and Cache-Control features #9

Closed meffmadd closed 5 months ago

meffmadd commented 2 years ago

Is your feature request related to a problem? Please describe. The simple http client does not handle proxies and seems to discard Cache-Control headers. We could simplify the grader service significantly if we could use proxy calls to the service instead of the intermediate call with the http client.

Maybe we also want to pass through Cache-Control headers from the service to the frontend.

Describe the solution you'd like Tornados CurlAsyncHTTPClient could be a solution for these problems.

meffmadd commented 2 years ago

The RequestService is also instantiated for every request so the AsyncHTTPClient cannot keep any state between requests (for caching etc.). The RequestService or the AsyncHTTPClient should be singletons.