Closed Jaymon closed 1 year ago
This is legit, but I've removed the server code in the new ASGI code, and the test servers would benefit from being able to create a controller but right now the tests pass using TestCase.create_client
and I'm worn out on refactoring things right now.
It's common when you start a webserver to not know the host until the webserver has started, so to create a client you would do something like:
But why can't the server just do that?
This would also make it so you don't have to import
endpoints.client.WebClient
into your module