// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.IO; using Microsoft.AspNet.HttpFeature; namespace Microsoft.AspNet.PipelineCore { public class DefaultHttpResponseFeature : IHttpResponseFeature { public DefaultHttpResponseFeature() { StatusCode = 200; Headers = new Dictionary(StringComparer.OrdinalIgnoreCase); Body = Stream.Null; } public int StatusCode { get; set; } public string ReasonPhrase { get; set; } public IDictionary Headers { get; set; } public Stream Body { get; set; } public void OnSendingHeaders(Action callback, object state) { throw new NotSupportedException(); } } }