Added IsRedirect property to the HttpResponse class

This commit is contained in:
sta 2014-12-11 14:27:13 +09:00
parent 696287e25a
commit e7c4b1416a

View File

@ -92,6 +92,12 @@ namespace WebSocketSharp
} }
} }
public bool IsRedirect {
get {
return _code == "302";
}
}
public bool IsUnauthorized { public bool IsUnauthorized {
get { get {
return _code == "401"; return _code == "401";