HTTPResponse.ok() 方法
¥HTTPResponse.ok() method
如果响应成功(状态范围为 200-299),则为 true。
¥True if the response was successful (status in the range 200-299).
签名
¥Signature
class HTTPResponse {
ok(): boolean;
}
Returns:
boolean
¥HTTPResponse.ok() method
如果响应成功(状态范围为 200-299),则为 true。
¥True if the response was successful (status in the range 200-299).
¥Signature
class HTTPResponse {
ok(): boolean;
}
Returns:
boolean