Refactored a few for HttpListenerResponse.cs
This commit is contained in:
		| @@ -323,18 +323,11 @@ namespace WebSocketSharp.Net | |||||||
|     /// Gets or sets the URL to which the client is redirected to locate a requested resource. |     /// Gets or sets the URL to which the client is redirected to locate a requested resource. | ||||||
|     /// </summary> |     /// </summary> | ||||||
|     /// <value> |     /// <value> | ||||||
|     /// A <see cref="string"/> that represents the value of the Location response-header. |     /// A <see cref="string"/> that represents the value of the Location response-header, | ||||||
|  |     /// or <see langword="null"/> if no redirect location is specified. | ||||||
|     /// </value> |     /// </value> | ||||||
|     /// <exception cref="ArgumentException"> |     /// <exception cref="ArgumentException"> | ||||||
|     ///   <para> |     /// The value specified for a set operation isn't an absolute URL. | ||||||
|     ///   The value specified for a set operation is empty. |  | ||||||
|     ///   </para> |  | ||||||
|     ///   <para> |  | ||||||
|     ///   -or- |  | ||||||
|     ///   </para> |  | ||||||
|     ///   <para> |  | ||||||
|     ///   The value specified for a set operation isn't an absolute URL. |  | ||||||
|     ///   </para> |  | ||||||
|     /// </exception> |     /// </exception> | ||||||
|     /// <exception cref="ObjectDisposedException"> |     /// <exception cref="ObjectDisposedException"> | ||||||
|     /// This object is closed. |     /// This object is closed. | ||||||
| @@ -351,9 +344,6 @@ namespace WebSocketSharp.Net | |||||||
|           return; |           return; | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         if (value.Length == 0) |  | ||||||
|           throw new ArgumentException ("An empty string.", "value"); |  | ||||||
|  |  | ||||||
|         Uri uri = null; |         Uri uri = null; | ||||||
|         if (!value.MaybeUri () || !Uri.TryCreate (value, UriKind.Absolute, out uri)) |         if (!value.MaybeUri () || !Uri.TryCreate (value, UriKind.Absolute, out uri)) | ||||||
|           throw new ArgumentException ("Not an absolute URL.", "value"); |           throw new ArgumentException ("Not an absolute URL.", "value"); | ||||||
| @@ -806,15 +796,7 @@ namespace WebSocketSharp.Net | |||||||
|     /// <paramref name="url"/> is <see langword="null"/>. |     /// <paramref name="url"/> is <see langword="null"/>. | ||||||
|     /// </exception> |     /// </exception> | ||||||
|     /// <exception cref="ArgumentException"> |     /// <exception cref="ArgumentException"> | ||||||
|     ///   <para> |     /// <paramref name="url"/> isn't an absolute URL. | ||||||
|     ///   <paramref name="url"/> is empty. |  | ||||||
|     ///   </para> |  | ||||||
|     ///   <para> |  | ||||||
|     ///   -or- |  | ||||||
|     ///   </para> |  | ||||||
|     ///   <para> |  | ||||||
|     ///   <paramref name="url"/> isn't an absolute URL. |  | ||||||
|     ///   </para> |  | ||||||
|     /// </exception> |     /// </exception> | ||||||
|     /// <exception cref="InvalidOperationException"> |     /// <exception cref="InvalidOperationException"> | ||||||
|     /// The response has already been sent. |     /// The response has already been sent. | ||||||
| @@ -828,9 +810,6 @@ namespace WebSocketSharp.Net | |||||||
|       if (url == null) |       if (url == null) | ||||||
|         throw new ArgumentNullException ("url"); |         throw new ArgumentNullException ("url"); | ||||||
|  |  | ||||||
|       if (url.Length == 0) |  | ||||||
|         throw new ArgumentException ("An empty string.", "url"); |  | ||||||
|  |  | ||||||
|       Uri uri = null; |       Uri uri = null; | ||||||
|       if (!url.MaybeUri () || !Uri.TryCreate (url, UriKind.Absolute, out uri)) |       if (!url.MaybeUri () || !Uri.TryCreate (url, UriKind.Absolute, out uri)) | ||||||
|         throw new ArgumentException ("Not an absolute URL.", "url"); |         throw new ArgumentException ("Not an absolute URL.", "url"); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user