Added HasConnectionClose property to the HttpResponse class

This commit is contained in:
sta 2014-12-19 15:28:44 +09:00
parent a8bb74c394
commit a23bd04bdc

View File

@ -86,6 +86,12 @@ namespace WebSocketSharp
} }
} }
public bool HasConnectionClose {
get {
return Headers.Contains ("Connection", "close");
}
}
public bool IsProxyAuthenticationRequired { public bool IsProxyAuthenticationRequired {
get { get {
return _code == "407"; return _code == "407";