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

Method wasi_http_hooks

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

Source from the content-addressed store, hash-verified

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![];

Callers 1

new_storeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected