summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Core/Messaging/HttpDeliveryMethods.cs
blob: c92b9de5f26c209b943184ef731737d7b0b17d1d (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//-----------------------------------------------------------------------
// <copyright file="HttpDeliveryMethods.cs" company="Outercurve Foundation">
//     Copyright (c) Outercurve Foundation. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace DotNetOpenAuth.Messaging {
	using System;

	/// <summary>
	/// The methods available for the local party to send messages to a remote party.
	/// </summary>
	/// <remarks>
	/// See OAuth 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>
		/// Added to the URLs in the query part (as defined by [RFC3986] (Berners-Lee, T., “Uniform Resource Identifiers (URI): Generic Syntax,” .) section 3).
		/// </summary>
		PutRequest = 0x8,

		/// <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>
		DeleteRequest = 0x10,

		/// <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>
		HeadRequest = 0x20,

		/// <summary>
		/// The flags that control HTTP verbs.
		/// </summary>
		HttpVerbMask = PostRequest | GetRequest | PutRequest | DeleteRequest | HeadRequest,
	}
}