(&self)
| 178 | } |
| 179 | |
| 180 | fn hook_curl_close(&self) -> (Box<BeforeExecuteHook>, Box<AfterExecuteHook>) { |
| 181 | ( |
| 182 | Box::new(|_, execute_data| { |
| 183 | validate_num_args(execute_data, 1)?; |
| 184 | |
| 185 | let cid = Self::get_resource_id(execute_data)?; |
| 186 | |
| 187 | CURL_HEADERS.with(|headers| headers.borrow_mut().remove(&cid)); |
| 188 | |
| 189 | Ok(Box::new(())) |
| 190 | }), |
| 191 | Noop::noop(), |
| 192 | ) |
| 193 | } |
| 194 | |
| 195 | fn hook_curl_multi_add_handle(&self) -> (Box<BeforeExecuteHook>, Box<AfterExecuteHook>) { |
| 196 | ( |
no test coverage detected