This question had a similar situation but the guy ended up using HttpClient
as a hack: Programmatically invoking the ASP.NET Core request pipeline
Is there a way to trigger the http pipeline (simulate a full request) by providing the payload, headers, verb and url route programmatically WITHOUT using the HttpClient
?
I also saw you could do something similar with the TestServer
for integration testing but this feels like a hack as well for what I want