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

Function request

tests/e2e.rs:278–289  ·  view source on GitHub ↗
(
    request_builder: RequestBuilder, actual_content: impl Into<String>,
    handler: impl FnOnce(String) -> F,
)

Source from the content-addressed store, hash-verified

276}
277
278async fn request<F>(
279 request_builder: RequestBuilder, actual_content: impl Into<String>,
280 handler: impl FnOnce(String) -> F,
281) where
282 F: Future<Output = ()>,
283{
284 let response = request_builder.send().await.unwrap();
285 let status = response.status();
286 let content = response.text().await.unwrap();
287 handler(content.clone()).await;
288 assert_eq!((status, content), (StatusCode::OK, actual_content.into()));
289}

Callers 2

request_commonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected