Dav*_*d L 30
只需从RestResponse对象中获取ResponseCode属性并将枚举值转换为int.
RestResponse response = client.Execute(request);
HttpStatusCode statusCode = response.StatusCode;
int numericStatusCode = (int)statusCode;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
12892 次 |
| 最近记录: |