Send code to judge
(self, j: Json, url: String, refer: String)
| 240 | |
| 241 | /// Send code to judge |
| 242 | pub async fn run_code(self, j: Json, url: String, refer: String) -> Result<Response> { |
| 243 | info!("Sending code to judge..."); |
| 244 | Req { |
| 245 | default_headers: self.default_headers, |
| 246 | refer: Some(refer), |
| 247 | info: false, |
| 248 | json: Some(j), |
| 249 | mode: Mode::Post, |
| 250 | name: "run_code", |
| 251 | url, |
| 252 | } |
| 253 | .send(&self.client) |
| 254 | .await |
| 255 | } |
| 256 | |
| 257 | /// Get the result of submission / testing |
| 258 | pub async fn verify_result(self, id: String) -> Result<Response> { |