I am trying to receive from Web.API a event stream using angular 6 version so my API method looks simple enaught:

```
    [HttpGet, ActionName("GetValues")]
    public async Task GetValues()
    {
        try
        {
            //Get values from db

            Response.Headers.Add("Content-Type", "text/event-stream");
            foreach (var value in values)
            {
                string jsonResponse = JsonConvert.SerializeObject(value);
                byte[] dataItemBytes = Encoding.ASCII.GetBytes(jsonResponse);
                await Response.Body.WriteAsync(dataItemBytes,0, dataItemBytes.Length);
                await Response.Body.FlushAsync();
            }
        }
        catch (Exception ex)
        {
            logger.Error(ex);
        }
    } 

```

So now I was trying to use something like:

```
return this.httpClient.get<any>(http://localhost/api/System/GetValues`);

```

And all that I am receiving is

> 
> Http failure during parsing for https://localhost/api/System/GetValues
> 
> 
> 

So idea is I am sending request and reviving stream (stream will transfer lots of data that's why I used it) in return, it works on swagger and it also works on postman. But I am having problem with angular, what can I do?