summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Core/Messaging/IHttpDirectRequest.cs
blob: 715333469ae6782a12171d07a7ee9ac4edbc2108 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//-----------------------------------------------------------------------
// <copyright file="IHttpDirectRequest.cs" company="Outercurve Foundation">
//     Copyright (c) Outercurve Foundation. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace DotNetOpenAuth.Messaging {
	using System.Diagnostics.Contracts;
	using System.Net;

	/// <summary>
	/// An interface that allows direct request messages to capture the details of the HTTP request they arrived on.
	/// </summary>
	[ContractClass(typeof(IHttpDirectRequestContract))]
	public interface IHttpDirectRequest : IMessage {
		/// <summary>
		/// Gets the HTTP headers of the request.
		/// </summary>
		/// <value>May be an empty collection, but must not be <c>null</c>.</value>
		WebHeaderCollection Headers { get; }
	}
}