diff options
| author | Erwin de Haan <EraYaN@users.noreply.github.com> | 2019-01-13 21:31:14 +0100 |
|---|---|---|
| committer | Erwin de Haan <EraYaN@users.noreply.github.com> | 2019-01-13 21:31:14 +0100 |
| commit | a36658f6f0ed342d8b55dbf7c9ff95fe3abfa818 (patch) | |
| tree | b1484407efd83b243d0ea792b18c598e9ff53053 /SocketHttpListener/HttpResponse.cs | |
| parent | 9fa60ec9340cbc8b4ed3e866fcf61852077902a1 (diff) | |
ReSharper Reformat: Properties to expression bodied form.
Diffstat (limited to 'SocketHttpListener/HttpResponse.cs')
| -rw-r--r-- | SocketHttpListener/HttpResponse.cs | 40 |
1 files changed, 5 insertions, 35 deletions
diff --git a/SocketHttpListener/HttpResponse.cs b/SocketHttpListener/HttpResponse.cs index 24befccb3..bcfa4a906 100644 --- a/SocketHttpListener/HttpResponse.cs +++ b/SocketHttpListener/HttpResponse.cs @@ -46,13 +46,7 @@ namespace SocketHttpListener #region Public Properties - public CookieCollection Cookies - { - get - { - return GetCookies(Headers, true); - } - } + public CookieCollection Cookies => GetCookies(Headers, true); private static CookieCollection GetCookies(QueryParamCollection headers, bool response) { @@ -62,21 +56,9 @@ namespace SocketHttpListener : CookieHelper.Parse(headers[name], response); } - public bool IsProxyAuthenticationRequired - { - get - { - return _code == "407"; - } - } + public bool IsProxyAuthenticationRequired => _code == "407"; - public bool IsUnauthorized - { - get - { - return _code == "401"; - } - } + public bool IsUnauthorized => _code == "401"; public bool IsWebSocketResponse { @@ -90,21 +72,9 @@ namespace SocketHttpListener } } - public string Reason - { - get - { - return _reason; - } - } + public string Reason => _reason; - public string StatusCode - { - get - { - return _code; - } - } + public string StatusCode => _code; #endregion |
