()
| 486 | |
| 487 | #[tokio::test] |
| 488 | async fn test_with_auth_header() { |
| 489 | let mut headers = HashMap::new(); |
| 490 | headers.insert("Authorization".to_string(), "Bearer token".to_string()); |
| 491 | let transport = StreamableHttpTransport::connect("http://127.0.0.1:1", headers) |
| 492 | .await |
| 493 | .unwrap(); |
| 494 | assert!(transport.is_connected()); |
| 495 | transport.close().await.unwrap(); |
| 496 | } |
| 497 | |
| 498 | #[tokio::test] |
| 499 | async fn test_debug_format() { |