(&self)
| 383 | |
| 384 | #[cfg(feature = "wasi-http")] |
| 385 | pub fn wasi_http_ctx(&self) -> Result<wasmtime_wasi_http::WasiHttpCtx> { |
| 386 | let mut http = wasmtime_wasi_http::WasiHttpCtx::new(); |
| 387 | if let Some(limit) = self.common.wasi.max_http_fields_size { |
| 388 | http.set_field_size_limit(limit); |
| 389 | } |
| 390 | Ok(http) |
| 391 | } |
| 392 | |
| 393 | #[cfg(feature = "wasi-http")] |
| 394 | pub fn wasi_http_hooks(&self) -> HttpHooks { |
no test coverage detected