diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2011-07-01 16:49:44 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2011-07-01 16:49:44 -0700 |
commit | b6f7a18b949acb4346754ae47fb07424076a3cd0 (patch) | |
tree | 4c23cb2b8174f3288cb0b787cff4c6ac432c6bef /src/DotNetOpenAuth.Messaging/Messaging/DirectWebRequestOptions.cs | |
parent | f16525005555b86151b7a1c741aa29550635108a (diff) | |
download | DotNetOpenAuth-b6f7a18b949acb4346754ae47fb07424076a3cd0.zip DotNetOpenAuth-b6f7a18b949acb4346754ae47fb07424076a3cd0.tar.gz DotNetOpenAuth-b6f7a18b949acb4346754ae47fb07424076a3cd0.tar.bz2 |
First pass at dividing DotNetOpenAuth features into separate assemblies.
Nothing compiles at this point.
Diffstat (limited to 'src/DotNetOpenAuth.Messaging/Messaging/DirectWebRequestOptions.cs')
-rw-r--r-- | src/DotNetOpenAuth.Messaging/Messaging/DirectWebRequestOptions.cs | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.Messaging/Messaging/DirectWebRequestOptions.cs b/src/DotNetOpenAuth.Messaging/Messaging/DirectWebRequestOptions.cs new file mode 100644 index 0000000..f3ce805 --- /dev/null +++ b/src/DotNetOpenAuth.Messaging/Messaging/DirectWebRequestOptions.cs @@ -0,0 +1,38 @@ +//----------------------------------------------------------------------- +// <copyright file="DirectWebRequestOptions.cs" company="Andrew Arnott"> +// Copyright (c) Andrew Arnott. All rights reserved. +// </copyright> +//----------------------------------------------------------------------- + +namespace DotNetOpenAuth.Messaging { + using System; + using System.Net; + + /// <summary> + /// A set of flags that can control the behavior of an individual web request. + /// </summary> + [Flags] + public enum DirectWebRequestOptions { + /// <summary> + /// Indicates that default <see cref="HttpWebRequest"/> behavior is required. + /// </summary> + None = 0x0, + + /// <summary> + /// Indicates that any response from the remote server, even those + /// with HTTP status codes that indicate errors, should not result + /// in a thrown exception. + /// </summary> + /// <remarks> + /// Even with this flag set, <see cref="ProtocolException"/> should + /// be thrown when an HTTP protocol error occurs (i.e. timeouts). + /// </remarks> + AcceptAllHttpResponses = 0x1, + + /// <summary> + /// Indicates that the HTTP request must be completed entirely + /// using SSL (including any redirects). + /// </summary> + RequireSsl = 0x2, + } +} |