| /wasmtime-44.0.1/crates/wasi-http/src/p3/ |
| H A D | conv.rs | 48 fn from(method: http::Method) -> Self { in from() 49 Self::from(&method) in from() 54 fn from(method: &http::Method) -> Self { in from() 55 if method == http::Method::GET { in from() 57 } else if method == http::Method::HEAD { in from() 61 } else if method == http::Method::PUT { in from() 74 Self::Other(method.as_str().into()) in from() 80 type Error = http::method::InvalidMethod; 83 Self::try_from(&method) in try_from() 88 type Error = http::method::InvalidMethod; [all …]
|
| H A D | request.rs | 31 pub method: Method, field 54 method: Method, in new() 68 method, in new() 104 method, in from_http() 118 method, in from_http() 155 method, in into_http_with_getter() 241 .method(method) in into_http_with_getter() 546 assert_eq!(http_req.method(), Method::POST); in test_request_into_http_schemes()
|
| /wasmtime-44.0.1/crates/wasi-http/src/p2/ |
| H A D | types.rs | 50 fn from(method: http::Method) -> Self { in from() 51 if method == http::Method::GET { in from() 53 } else if method == hyper::Method::HEAD { in from() 55 } else if method == hyper::Method::POST { in from() 57 } else if method == hyper::Method::PUT { in from() 65 } else if method == hyper::Method::TRACE { in from() 67 } else if method == hyper::Method::PATCH { in from() 76 type Error = http::method::InvalidMethod; 97 pub(crate) method: http::method::Method, field 136 method: parts.method, in new_incoming_request() [all …]
|
| H A D | http_impl.rs | 41 builder = builder.method(match req.method { in handle() 52 Ok(method) => method, in handle()
|
| H A D | types_impl.rs | 169 fn method(&mut self, id: Resource<HostIncomingRequest>) -> wasmtime::Result<Method> { in method() method 170 let method = self.table.get(&id)?.method.clone(); in method() localVariable 171 Ok(method.into()) in method() 233 method: types::Method::Get, in new() 278 fn method( in method() method 282 Ok(self.table.get(&request)?.method.clone()) in method() 288 method: Method, in set_method() 292 if let Method::Other(s) = &method { in set_method() 298 req.method = method; in set_method()
|
| /wasmtime-44.0.1/docs/ |
| H A D | examples-interrupting-wasm.md | 41 …ig::consume_fuel`](https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.consume_fuel) 42 * [`wasmtime::Config::set_fuel`](https://docs.rs/wasmtime/latest/wasmtime/struct.Store.html#method.… 43 …ld_interval`](https://docs.rs/wasmtime/latest/wasmtime/struct.Store.html#method.fuel_async_yield_i… 63 …terruption`](https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.epoch_interruption) 64 …adline_trap`](https://docs.rs/wasmtime/latest/wasmtime/struct.Store.html#method.epoch_deadline_tra… 65 …ne_callback`](https://docs.rs/wasmtime/latest/wasmtime/struct.Store.html#method.epoch_deadline_cal… 66 …_and_update`](https://docs.rs/wasmtime/latest/wasmtime/struct.Store.html#method.epoch_deadline_asy…
|
| H A D | examples-pre-compiling-wasm.md | 66 …pile_module`](https://docs.rs/wasmtime/latest/wasmtime/struct.Engine.html#method.precompile_module) 68 …_component`](https://docs.rs/wasmtime/latest/wasmtime/struct.Engine.html#method.precompile_compone… 69 …ule::deserialize`](https://docs.rs/wasmtime/latest/wasmtime/struct.Module.html#method.deserialize), 70 …ialize_file`](https://docs.rs/wasmtime/latest/wasmtime/struct.Module.html#method.deserialize_file), 71 …ize`](https://docs.rs/wasmtime/latest/wasmtime/component/struct.Component.html#method.deserialize), 73 …](https://docs.rs/wasmtime/latest/wasmtime/component/struct.Component.html#method.deserialize_file)
|
| H A D | examples-fast-execution.md | 17 [`wasmtime::Config::strategy`](https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.s… 44 …ased_traps`](https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.signals_based_trap… 45 …eservation`](https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.memory_reservation… 47 …_guard_size`](https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.memory_guard_size) 66 …lag_enable`](https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.cranelift_flag_ena…
|
| H A D | examples-deterministic-wasm-execution.md | 28 …icalization](https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.cranelift_nan_cano… 40 …terministic](https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.relaxed_simd_deter… 44 …elaxed_simd`](https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.wasm_relaxed_simd) 60 [limiter](https://docs.rs/wasmtime/latest/wasmtime/struct.Store.html#method.limiter) 64 creator](https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.with_host_memory)
|
| H A D | examples-fast-instantiation.md | 23 …n_strategy`](https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.allocation_strateg… 35 …mory_init_cow`](https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.memory_init_cow) 51 …tantiate_pre`](https://docs.rs/wasmtime/latest/wasmtime/struct.Linker.html#method.instantiate_pre), 54 …pre`](https://docs.rs/wasmtime/latest/wasmtime/component/struct.Linker.html#method.instantiate_pre)
|
| H A D | examples-fast-compilation.md | 18 * [`wasmtime::Config::cache`](https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.ca… 32 [`wasmtime::Config::strategy`](https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.s… 43 …ompilation`](https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.parallel_compilati…
|
| /wasmtime-44.0.1/.github/label-messager/ |
| H A D | wasmtime-config.md | 4 * [ ] If you added a new `Config` method, you wrote extensive documentation for 15 information about not just the method, but its parameters and results as 18 Is this method fallible? If so, when can it return an error? 20 Can this method panic? If so, when does it panic? 29 * [ ] If you added a new `Config` method, or modified an existing one, you
|
| /wasmtime-44.0.1/crates/test-programs/src/bin/ |
| H A D | p2_http_outbound_request_post.rs | 22 let method = res.header("x-wasmtime-test-method").unwrap(); in main() localVariable 23 assert_eq!(std::str::from_utf8(method).unwrap(), "POST"); in main()
|
| H A D | p2_http_outbound_request_put.rs | 22 let method = res.header("x-wasmtime-test-method").unwrap(); in main() localVariable 23 assert_eq!(std::str::from_utf8(method).unwrap(), "PUT"); in main()
|
| H A D | p2_http_outbound_request_get.rs | 22 let method = res.header("x-wasmtime-test-method").unwrap(); in main() localVariable 23 assert_eq!(std::str::from_utf8(method).unwrap(), "GET"); in main()
|
| H A D | p2_http_outbound_request_large_post.rs | 30 let method = res.header("x-wasmtime-test-method").unwrap(); in main() localVariable 31 assert_eq!(std::str::from_utf8(method).unwrap(), "POST"); in main()
|
| H A D | p3_http_outbound_request_get.rs | 31 let method = res.header("x-wasmtime-test-method").unwrap(); in run() localVariable 32 assert_eq!(std::str::from_utf8(method).unwrap(), "GET"); in run()
|
| H A D | p3_http_outbound_request_post.rs | 32 let method = res.header("x-wasmtime-test-method").unwrap(); in run() localVariable 33 assert_eq!(std::str::from_utf8(method).unwrap(), "POST"); in run()
|
| H A D | p3_http_outbound_request_put.rs | 31 let method = res.header("x-wasmtime-test-method").unwrap(); in run() localVariable 32 assert_eq!(std::str::from_utf8(method).unwrap(), "PUT"); in run()
|
| H A D | p3_http_outbound_request_large_post.rs | 39 let method = res.header("x-wasmtime-test-method").unwrap(); in run() localVariable 40 assert_eq!(std::str::from_utf8(method).unwrap(), "POST"); in run()
|
| H A D | p3_http_proxy.rs | 28 let method = request.get_method(); in handle() localVariable 31 outgoing_request.set_method(&method).unwrap(); in handle()
|
| /wasmtime-44.0.1/crates/component-macro/tests/codegen/ |
| H A D | unstable-features.wit | 10 @unstable(feature = experimental-interface-resource-method) 25 @unstable(feature = experimental-world-resource-method)
|
| H A D | resources-export.wit | 15 method-a: func() -> u32; 24 method-a: func(y: y) -> y;
|
| /wasmtime-44.0.1/crates/wasi-http/tests/all/ |
| H A D | p2.rs | 242 .method(http::Method::GET); in wasi_http_proxy_tests() 294 if let (Method::GET, Some(body)) = (request.method, bodies.get(request.uri.path())) { in do_wasi_http_hash_all() 370 .method(http::Method::GET) in do_wasi_http_hash_all() 420 .method(http::Method::GET) in wasi_http_hash_all_with_reject() 478 (request.method(), request.uri().path()) in wasi_http_double_echo() 533 .method(http::Method::POST) in do_wasi_http_echo() 577 .method(http::Method::GET) in wasi_http_without_port() 602 .method(http::Method::GET); in wasi_http_no_trap_on_early_drop() 629 let mut builder = hyper::Request::builder().uri(uri).method(http::Method::GET); in wasi_http_fields_limit_incoming_request()
|
| H A D | http_server.rs | 16 let method = req.method().to_string(); in test() localVariable 19 .header("x-wasmtime-test-method", method) in test()
|