diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2012-01-29 14:32:45 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2012-01-29 14:32:45 -0800 |
commit | 5fec515095ee10b522f414a03e78f282aaf520dc (patch) | |
tree | 204c75486639c23cdda2ef38b34d7e5050a1a2e3 /src/DotNetOpenAuth.Core/Messaging/DirectWebRequestOptions.cs | |
parent | f1a4155398635a4fd9f485eec817152627682704 (diff) | |
parent | 8f4165ee515728aca3faaa26e8354a40612e85e4 (diff) | |
download | DotNetOpenAuth-5fec515095ee10b522f414a03e78f282aaf520dc.zip DotNetOpenAuth-5fec515095ee10b522f414a03e78f282aaf520dc.tar.gz DotNetOpenAuth-5fec515095ee10b522f414a03e78f282aaf520dc.tar.bz2 |
Merge branch 'splitDlls'.
DNOA now builds and (in some cases) ships as many distinct assemblies.
Diffstat (limited to 'src/DotNetOpenAuth.Core/Messaging/DirectWebRequestOptions.cs')
-rw-r--r-- | src/DotNetOpenAuth.Core/Messaging/DirectWebRequestOptions.cs | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.Core/Messaging/DirectWebRequestOptions.cs b/src/DotNetOpenAuth.Core/Messaging/DirectWebRequestOptions.cs new file mode 100644 index 0000000..f3ce805 --- /dev/null +++ b/src/DotNetOpenAuth.Core/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, + } +} |