Webpack HMR EventSource requests are now proxied (rather than redirected) to the local HMR server. Fixes #271.

This commit is contained in:
SteveSandersonMS
2016-09-09 16:31:15 +01:00
parent bc2de2ad59
commit f071590fce
3 changed files with 22 additions and 21 deletions

View File

@@ -1,16 +1,20 @@
using System;
namespace Microsoft.AspNetCore.SpaServices.Webpack
{
internal class ConditionalProxyMiddlewareOptions
{
public ConditionalProxyMiddlewareOptions(string scheme, string host, string port)
public ConditionalProxyMiddlewareOptions(string scheme, string host, string port, TimeSpan requestTimeout)
{
Scheme = scheme;
Host = host;
Port = port;
RequestTimeout = requestTimeout;
}
public string Scheme { get; }
public string Host { get; }
public string Port { get; }
public TimeSpan RequestTimeout { get; }
}
}