Added IsRedirect property to the HttpResponse class
This commit is contained in:
parent
696287e25a
commit
e7c4b1416a
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user