diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2008-10-23 19:52:59 -0700 |
---|---|---|
committer | Andrew <andrewarnott@gmail.com> | 2008-10-23 19:52:59 -0700 |
commit | 38c7d25878550429583558f5c907e34fb094fb68 (patch) | |
tree | c6edc9ee32d6d2031202040ac18cd2d288b3bb83 /src/DotNetOAuth/Messaging/HttpDeliveryMethods.cs | |
parent | 7ba9649126a7b802e348fbe210383fabc2898659 (diff) | |
download | DotNetOpenAuth-38c7d25878550429583558f5c907e34fb094fb68.zip DotNetOpenAuth-38c7d25878550429583558f5c907e34fb094fb68.tar.gz DotNetOpenAuth-38c7d25878550429583558f5c907e34fb094fb68.tar.bz2 |
Applied FxCop fixes.
Diffstat (limited to 'src/DotNetOAuth/Messaging/HttpDeliveryMethods.cs')
-rw-r--r-- | src/DotNetOAuth/Messaging/HttpDeliveryMethods.cs | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/DotNetOAuth/Messaging/HttpDeliveryMethods.cs b/src/DotNetOAuth/Messaging/HttpDeliveryMethods.cs new file mode 100644 index 0000000..e0f26c0 --- /dev/null +++ b/src/DotNetOAuth/Messaging/HttpDeliveryMethods.cs @@ -0,0 +1,43 @@ +//-----------------------------------------------------------------------
+// <copyright file="HttpDeliveryMethods.cs" company="Andrew Arnott">
+// Copyright (c) Andrew Arnott. All rights reserved.
+// </copyright>
+//-----------------------------------------------------------------------
+
+namespace DotNetOAuth.Messaging {
+ using System;
+
+ /// <summary>
+ /// The methods available for the Consumer to send direct messages to the Service Provider.
+ /// </summary>
+ /// <remarks>
+ /// See 1.0 spec section 5.2.
+ /// </remarks>
+ [Flags]
+ public enum HttpDeliveryMethods {
+ /// <summary>
+ /// No HTTP methods are allowed.
+ /// </summary>
+ None = 0x0,
+
+ /// <summary>
+ /// In the HTTP Authorization header as defined in OAuth HTTP Authorization Scheme (OAuth HTTP Authorization Scheme).
+ /// </summary>
+ AuthorizationHeaderRequest = 0x1,
+
+ /// <summary>
+ /// As the HTTP POST request body with a content-type of application/x-www-form-urlencoded.
+ /// </summary>
+ PostRequest = 0x2,
+
+ /// <summary>
+ /// Added to the URLs in the query part (as defined by [RFC3986] (Berners-Lee, T., “Uniform Resource Identifiers (URI): Generic Syntax,” .) section 3).
+ /// </summary>
+ GetRequest = 0x4,
+
+ /// <summary>
+ /// All HTTP requests are acceptable.
+ /// </summary>
+ All = AuthorizationHeaderRequest | PostRequest | GetRequest,
+ }
+}
|