MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / wasi_http_ctx

Method wasi_http_ctx

src/common.rs:385–391  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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 {

Callers 2

new_storeMethod · 0.80
populate_with_wasiMethod · 0.80

Calls 3

OkFunction · 0.85
set_field_size_limitMethod · 0.80
newFunction · 0.50

Tested by

no test coverage detected