diff --git a/nanoFramework.System.Net.Http.Server/System.Net.Http.Server.nfproj b/nanoFramework.System.Net.Http.Server/System.Net.Http.Server.nfproj index 9e1d5e6f..48d75064 100644 --- a/nanoFramework.System.Net.Http.Server/System.Net.Http.Server.nfproj +++ b/nanoFramework.System.Net.Http.Server/System.Net.Http.Server.nfproj @@ -55,10 +55,10 @@ Http\System.Net.HttpListenerContext.cs - Http\System.Net.HttpListenerResponse.cs + Http\System.Net.HttpListenerRequest.cs - + Http\System.Net.HttpListenerResponse.cs Http\System.Net.HttpStatusCode.cs diff --git a/nanoFramework.System.Net.Http/Http/System.Net.HttpListenerResponse.cs b/nanoFramework.System.Net.Http/Http/System.Net.HttpListenerResponse.cs index 736c4705..834084c1 100644 --- a/nanoFramework.System.Net.Http/Http/System.Net.HttpListenerResponse.cs +++ b/nanoFramework.System.Net.Http/Http/System.Net.HttpListenerResponse.cs @@ -241,6 +241,11 @@ public long ContentLength64 } } + /// + /// Gets a value indicating whether response headers have been sent to the client. + /// + public bool HasStarted => m_WasResponseSent; + /// /// Gets or sets the collection of header name/value pairs that is /// returned by the server.