summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenId/IResponse.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DotNetOpenId/IResponse.cs')
-rw-r--r--src/DotNetOpenId/IResponse.cs29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/DotNetOpenId/IResponse.cs b/src/DotNetOpenId/IResponse.cs
new file mode 100644
index 0000000..1c40401
--- /dev/null
+++ b/src/DotNetOpenId/IResponse.cs
@@ -0,0 +1,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();
+ }
+}