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

Method hook

src/plugin/plugin_curl.rs:87–103  ·  view source on GitHub ↗
(
        &self, _class_name: Option<&str>, function_name: &str,
    )

Source from the content-addressed store, hash-verified

85 }
86
87 fn hook(
88 &self, _class_name: Option<&str>, function_name: &str,
89 ) -> Option<(Box<BeforeExecuteHook>, Box<AfterExecuteHook>)> {
90 match function_name {
91 "curl_setopt" => Some(self.hook_curl_setopt()),
92 "curl_setopt_array" => Some(self.hook_curl_setopt_array()),
93 "curl_exec" => Some(self.hook_curl_exec()),
94 "curl_close" => Some(self.hook_curl_close()),
95
96 "curl_multi_add_handle" => Some(self.hook_curl_multi_add_handle()),
97 "curl_multi_remove_handle" => Some(self.hook_curl_multi_remove_handle()),
98 "curl_multi_exec" => Some(self.hook_curl_multi_exec()),
99 "curl_multi_close" => Some(self.hook_curl_multi_close()),
100
101 _ => None,
102 }
103 }
104}
105
106impl CurlPlugin {

Callers

nothing calls this directly

Calls 8

hook_curl_setoptMethod · 0.80
hook_curl_execMethod · 0.80
hook_curl_closeMethod · 0.80
hook_curl_multi_execMethod · 0.80
hook_curl_multi_closeMethod · 0.80

Tested by

no test coverage detected