summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenId/IResponse.cs
blob: 1c40401e393c55d47bc2e12327ee48f9ab17c1a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System.Net;

namespace DotNetOpenId {
	/// <summary>
	/// Represents an indirect message passed between Relying Party and Provider.
	/// </summary>
	public interface IResponse {
		/// <summary>
		/// The HTTP status code that should accompany the response.
		/// </summary>
		HttpStatusCode Code { get; }
		/// <summary>
		/// The HTTP headers that should be added to the response.
		/// </summary>
		WebHeaderCollection Headers { get; }
		/// <summary>
		/// The body that should be sent as the response content.
		/// </summary>
		[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
		byte[] Body { get; }
		/// <summary>
		/// Sends the response to the browser.
		/// </summary>
		/// <remarks>
		/// This requires an ASP.NET HttpContext.
		/// </remarks>
		void Send();
	}
}