| 392 | |
| 393 | #[cfg(feature = "wasi-http")] |
| 394 | pub fn wasi_http_hooks(&self) -> HttpHooks { |
| 395 | HttpHooks { |
| 396 | p2_outgoing_body_buffer_chunks: self |
| 397 | .common |
| 398 | .wasi |
| 399 | .http_outgoing_body_buffer_chunks |
| 400 | .unwrap_or_else(|| wasmtime_wasi_http::p2::DEFAULT_OUTGOING_BODY_BUFFER_CHUNKS), |
| 401 | p2_outgoing_body_chunk_size: self |
| 402 | .common |
| 403 | .wasi |
| 404 | .http_outgoing_body_chunk_size |
| 405 | .unwrap_or_else(|| wasmtime_wasi_http::p2::DEFAULT_OUTGOING_BODY_CHUNK_SIZE), |
| 406 | } |
| 407 | } |
| 408 | |
| 409 | pub fn compute_preopen_sockets(&self) -> Result<Vec<TcpListener>> { |
| 410 | let mut listeners = vec![]; |