title: Dotnet-core convert raw bytes of http-request to HttpRequest class
body: <p>Let's imagine I have a custom protocol to transport data now I want to wrap an HTTP request in it and pass it to the server on the server I receive a raw byte array of my HTTP request now I want to parse it to <code>HttpRequest</code> class.
  Is there any way to parse the raw byte array to <code>HttpRequest</code> in .net-core? Something like this:</p>
  <pre><code>Stream mystream = myCustomProtocol.BodyStream; //the body-stream is a complete http request
  HttpRequest request = HttpRequestHelper.ReadFrom(mystream);
  </code></pre>