MCPcopy Create free account
hub / github.com/apache/skywalking-php / hook_curl_close

Method hook_curl_close

src/plugin/plugin_curl.rs:180–193  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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 (

Callers 1

hookMethod · 0.80

Calls 1

validate_num_argsFunction · 0.85

Tested by

no test coverage detected