title: Stream proxy a live stream in ASP.NET CORE
body: <p>I have a stream url of my webcam, that returns a content-type of "multipart/x-mixed-replace;boundary=myboundary", let say that it is accessible via <a href="http://mywebcam/livrestream.cgi" rel="nofollow noreferrer">http://mywebcam/livrestream.cgi</a></p>
  
  <p>I would like to create a proxy in ASP.NET CORE that can return the same stream.</p>
  
  <p>I've created a route that get the stream :</p>
  
  <pre><code>[Route("api/test")]
  [HttpGet]
  public async Task&lt;HttpResponseMessage&gt; Test()
  {
      var client = new HttpClient();
      var inputStream = await client.GetStreamAsync("http://mywebcam/livrestream.cgi");
      var response = new HttpResponseMessage();
      response.Content = new PushStreamContent((stream, httpContent, transportContext) =&gt;
      {
          // what to do ?
      }, "video/mp4");
      return response;
  }
  </code></pre>
  
  <p>It seems that I have to use PushStreamContent. But what should I do ? 
  An endless while loop that query regulary the stream ? something else ?</p>