title: Manually Invoke a Controller's Action in asp.net core
body: <p>How can I invoke (or get the result of said invokation) a controllers action given I have the <code>HttpMethod</code>, <code>Path</code>, <code>Headers</code> and any post <code>Data</code> as strings in a websocket listener of an asp.net core webapi project?</p>
  
  <p>I Have a asp.net core webapi project and I want to add websocket functionality. 
  I want to be able to "call" the http api endpoints via the websockets. In order to do that i have defined a custom message that contains the <code>HttpMethod</code>, <code>Path</code>, <code>Headers</code> and any post <code>Data</code>. 
  In order to try the approach I am currently creating an HttpClient and "forwarding" the request to the correct endpoint and it works but I would like to do this internally.</p>